[prev] [index] [next]

Using Perl

Perl programs can be invoked in several ways ...
  • giving the filename of the Perl program as a command line argument

    perl PerlCodeFile.pl
    

  • giving the Perl program itself as a command line argument

    perl -e 'print "Hello, world\n";'
    

  • using the #! notation and making the program file executable

    chmod 755 PerlCodeFile
    ./PerlCodeFile