Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      $cmd=~ s/^mycommand\.pl// || die "$0 : your command must always be '
    +mycommand.pl'\n";
      system('mycommand.pl', $cmd);
    }
    
  2. or download this
    #!perl
    # mycommand.pl
    print "got params (number of params: ".@ARGV.") : " . join(' ', @ARGV)
    +."\n";