Help for this page

Select Code to Download


  1. or download this
    #command line passed to the terminal
    > cl_args.pl myfile1.txt myfile2.txt myfile3.txt
    
  2. or download this
    # cl_args.pl
    use strict;
    ...
    # @ARGV is an array that can be be assigned to within your script
    @ARGV = ( 'myfile4.txt' );
    @ARGV == 1 and print @ARGV;