 <p>I'm no perl wizard, but the following seems to work:</p> <p><code>p4 changelists -m 1 -t //depot/...| perl -p -e "s/^/\042/;s/$/\042/"</code></p> <p>Check out <a href="http://strawberryperl.com/" rel="nofollow">Strawberry Perl</a>, which provides a Windows version of Perl.</p> <p>I'm always looking at my Unix tools when solving problems like this, even under Windows. sed and gawk will also get you there, check out <a href="http://code.google.com/p/msysgit/" rel="nofollow">msysgit</a> for a nice bundle of Unix tools that will run on Windows.</p>