Help for this page

Select Code to Download


  1. or download this
    my @fhandle_array;
    for $filename (@filenames)
    {
    ...
        #push the filehandle into your filehandle array
        push(@fhandle_array, *FILE);
    }
    
  2. or download this
    sub close_files() #args: none.  uses global array: fhandle_array
    {
    ...
            close $handle;
        }
    }