Help for this page

Select Code to Download


  1. or download this
    ...
    my $previous_line;
    while (my $current_line = <DATA>) {
    ...
      }
      $previous_line = $current_line;
    }
    
  2. or download this
    ...
    my $seen_here_is_the_data;
    while (my $line = <DATA>) {
    ...
        print $line;
      }
    }