Mega Code Archive
Categories
/
Perl
/
Language Basics
The -e switch executes Perl statements at the command line instead of from a script
$ perl -e 'print "hello dolly\n";' # UNIX/Linux $ perl -e "print qq/hello dolly\n/;" # Windows and UNIX/Linux