Help for this page

Select Code to Download


  1. or download this
    my $line_count=1;
    while (<FILEHANDLE>)
    {
       print $line_count++, " :$_"; 
    }
    
  2. or download this
    $/ = undef;
    my $lines = <STATFILE>;
    
  3. or download this
    my $lines = do { local $/; <STATFILE> };