From xradiograph

Perl: Win 32 Command Line

Running Perl from the Win32 command-line shell


To execute command-line perl in a Windows shell, everything needs to be in double-quotes.


Remember, if you want control-characters interpolated, you must use double-quotes, not single quotes. Which means they must be escaped:


perl -e "if ('hello' eq 'hello') {print \"yes!!!\n\n\";}"


see more on one-line escapement and Stack Overflow’s why doesn’t my one-line work?



more one-liners and notes
Perl as a command-line utility



See Also

Command Line Wild Card
Learning Perl Win 32



Category tags

Perl Programming shell win32

Retrieved from
Page last modified on January 07, 2010, at 10:30 AM