http://www.perlmonks.org?node_id=581655


in reply to RFC: A Primer on Writing Portable Perl Programs

Just one comment: I found that using the alternate quote syntax makes it much easier to write one-liners, portable or not:

perl -wl -e 'print qq{The arguments are: @ARGV};'

Then if you want to use this on Windows, change the outer ' to ", et voilà! No extra-escaping, no having to figure out whether there are interpolated variables in the string or not... It Just Works (tm)