Christopher Spears [mailto:[EMAIL PROTECTED] wrote:
> I have to write a script that processes text in a
> file.  The text includes lots of blank lines.  How can
> I tell Perl to skip the lines?

On Tue, 14 Dec 2004 11:22:54 +0530, Mallik <[EMAIL PROTECTED]> wrote:
> next if ($line =~ /^\s*$/);

+1 - this will match "\n", "  \n", "\t\n", "\t \n", etc

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Reply via email to