Help for this page

Select Code to Download


  1. or download this
    my %fh;
    for my $i ( 2, 3 ) {
    ...
    }
    
    # you now have multiple file handles indexed by file name in %fh
    
  2. or download this
    my %filedata;
    for my $i ( 2 .. 3 ) {
    ...
    
    # you now have the full content of each file as a single string value,
    # indexed by file name in %filedata