Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        print "ARGV[$i] = $_\n";
        $i++;
    }
    
  2. or download this
    These are the 4 arguments:
    ARGV[0] = s/foo/bar/
    ARGV[1] = file1.txt
    ARGV[2] = file2.txt
    ARGV[3] = file3.txt
    
  3. or download this
    use strict;
    use warnings;
    use Data::Dumper;
    print Dumper(\@ARGV);
    
  4. or download this
    $VAR1 = [
              's/foo/bar/',
    ...
              'file2.txt',
              'file3.txt'
            ];
    
  5. or download this
    use strict;
    use warnings;
    ...
        print "ARGV[$i] = $_\n";
        $i++;
    }
    
  6. or download this
    These are the 3 arguments:
    ARGV[0] = file1.txt
    ARGV[1] = file2.txt
    ARGV[2] = file3.txt