Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    # script1.pl
    ...
    $ENV{'MY_NAME'} = 'script1';
    
    print system('./script2.pl', 'arg'), "\n";
    
  2. or download this
    #!/usr/bin/env perl
    # script2.pl
    
    print $ENV{'MY_NAME'}, "\n";