Help for this page

Select Code to Download


  1. or download this
    my $openfile = '';
    foreach my $file (@file) {
    ...
       print FILE $content;
    }
    close(FILE) if $openfile;
    
  2. or download this
    for my $file (sort {$a->{filename} cmp $b->{filename}} @files) {
     ...
    }
    
  3. or download this
    foreach my $file (@files) {
       my $filename ...
    ...
    foreach my $fh (keys %fh) {
       close($fh{$fh});
    }