Help for this page

Select Code to Download


  1. or download this
      # you use strict do you?
      my $arg1= "foo";
      my $file1="bar";
      my @array1;
      file_processing();
      foreach (@array1) { process( $_); }
    
  2. or download this
      my $arg1= "foo";
      my $file1="bar";
      my @array1=  file_processing( $arg1, $file1);
      foreach (@array1) { process( $_); }
    
  3. or download this
    sub file_processing {
      my( $arg, $file)= @_;                        # added
      my @array;                                   # added
    ...
      close FILE;
      return @array;                           # added
      }