FAQ

Christopher Spears 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 wrote:
next if ($line =~ /^\s*$/);
+1 - this will match "\n", " \n", "\t\n", "\t \n", etc

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 5 | next ›
Discussion Overview
groupbeginners @
categoriesperl
postedDec 14, '04 at 5:44a
activeDec 14, '04 at 4:47p
posts5
users5
websiteperl.org

People

Translate

site design / logo © 2022 Grokbase