Help for this page

Select Code to Download


  1. or download this
     $line = <FILE>;                 #  <---------- 35
        # this line doesn't work. don't know what's wrong here..
    
  2. or download this
      @buf = <FILE>;                     # you reading all lines of FILE i
    +nto @buf
      foreach $line (@buf) {             # OK! (well, "my $line" would be 
    +better)
         $line = <FILE>;                 # but now reading again a single 
    +line !?! 
                                         #     which is  undef after EOF