Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    
    $ENV{'abc'} = 'def';
    system('echo $abc');
    
  2. or download this
    % echo $abc
    abc: Undefined variable.
    
  3. or download this
      [Parent process] ======> [Perl subprocess] ====> [Sub process shell]
        Env list #1,             Env list #2              Env list #3
       "abc" NOT defined        copied from the          copied from the
                                Parent process,         Perl subprocesses,
                               define "abc" here       "abc" still defined