Assuming you have a loop like
while( <> ) {
}
you could say
while( <> ) {
next if /^\s*$/;
}
That will find a line that contains any number of whitespace characters, or
no characters at all. Note that you do need the ^$ characters to make sure
it matches the whole string; otherwise, you would match any string.
Tanton
-----Original Message-----
From: Pedro A Reche Gallardo
To: [EMAIL PROTECTED]
Sent: 10/3/2001 10:49 AM
Subject: DELETE BLANK LINE
Hi all, I am sure someone has already asked this but I do not remeber
the answer. How can I delete or go to the next line if a blank line is
found. By a blank line I mean any line containing only white spaces,
return, tab characters etc.
Regards,
Pedro
--
************************************************************************
***
PEDRO a. RECHE gallardo, pHD TL: 617 632 3824
Scientist, Mol.Immnunol.Foundation, FX: 617 632 3351
Dana-Farber Cancer Institute, EM:
[EMAIL PROTECTED]
Harvard Medical School, EM: [EMAIL PROTECTED]
44 Binney Street, D610C, URL: http://www.reche.org
Boston, MA 02115
************************************************************************
***
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]