The best way is the following :

next if /^\s*$/;

Selim.


 --- Katherine Richmond
<[EMAIL PROTECTED]> a �crit�: > 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 

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to