Help for this page

Select Code to Download


  1. or download this
    ### test_args.pl ###
    use strict;
    ...
    my $arg_str = join(" ", @args);
    my $output = `print_args.pl $arg_str 2>&1`;
    print "Output:\n$output";
    
  2. or download this
    ### print_args.pl ###
    use strict;
    ...
    {
        print STDERR "Arg $i - $ARGV[$i]\n";
    }