next if $fileLine =~ /^$/;
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Katherine Richmond Sent: Friday, October 11, 2002 11:52 AM To: [EMAIL PROTECTED] Subject: How to skip over a blank line Hi everyone, I am parsing a file and need to recognize when I have come to a blank line. Can you tell me how to do this? Here is my code so far: while ( defined($fileLine = <IN>) ) { chomp ($fileLine); #if this line is blank, go to next line #if ($fileLine print "\nOne line: " . $fileLine; } Thank you, Kathy _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
