Perl on the Command Line

Running perl

 * Perl on the command line is an incredible administrative tool and a great time server
 * Normal way to run a perl script is by writing the code into file (say, "foo") then running it like this


 * If the script has "#!/usr/bin/perl" as the first line, then you can run the script directly as an application:


 * Sometimes writing files out is a pain, especially for one shot deals or when you don't have write permission. The same affects as above can be gained with the '-e' flag, which says "execute the next chunk as Perl code".