Help for this page

Select Code to Download


  1. or download this
    while( my $nextline = <IN> ){
      chomp;
      last unless $nextline eq '';   # exits the loop unless empty line
      print "Nextline is empty\n";
    }                                # now $nextline goes out of scope