Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
        @my_var = (20..30);
    }
    1;
    
  2. or download this
    use my_module;
    
    ...
    print "@my_var\n"; # prints 20..30
    system("perl 2.pl"); # calling another script
    exit;
    
  3. or download this
    use my_module;
    
    print "@my_var\n"; # prints 1..10 but expecting it to be 20..30