Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    my ($one, $two, $three) = @ARGV;
    
    print "arg1: $one, arg2: $two, arg3: $three\n";
    
  2. or download this
    > perl def.pl
    Program requires 3 arguments
    
    > perl def.pl 1 2 3
    arg1: 1, arg2: 2, arg3: 3