Help for this page

Select Code to Download


  1. or download this
    while (<>) {
       if (/name/) {
    ...
          # do something with $next_line ...
       }
    }
    
  2. or download this
    open my $fh, '<', $file or die "can not open $file:  $!";
    while <$fh> {
       ...
    }