Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl 
    
    while ($line = <>){
    ...
        }
    
    }
    
  2. or download this
    #!/usr/bin/perl -n
    
    my ($file, $rec) = split /\|/, $_, 2;
    ...
    }
    
    $fh{$file}->print $rec;