[HRPM] matching blank lines

chicks at chicks.net chicks at chicks.net
Mon Nov 6 17:08:11 CST 2000


On Mon, 6 Nov 2000, Lyman Byrd wrote:
> Would something like 
> ^\s+$ work?

Yes.  I prefer to:

	$line =~ s/\s+$//;
	next unless length $line;

But you could also

	if ($line =~ /^\s+$/) {

-- 
</chris>

"Pinky, you've left the lens cap of your mind on again." - The Brain




More information about the Norfolk-pm mailing list