develooper Front page | perl.beginners | Postings from January 2002

match + regexp synonyms?

Thread Next
From:
ERIC Lawson - x52010
Date:
January 30, 2002 13:55
Subject:
match + regexp synonyms?
Message ID:
Pine.LNX.4.21.0201301352140.2475-100000@arwen.bioeng.washington.edu
Why don't the match operators and regexps in the following produce the
same results?

	if ($editbl =~ /^\S+$/) { print AFILE "$editbl\n"; }
	if ($editbl !~ /^\s*$/) { print EFILE "$editbl\n"; }

TIA

-- 

James Eric Lawson
Research Publications Editor
National Simulation Resource

eric@bioeng.washington.edu

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Whereof one cannot speak, thereof one must be silent. -- Wittgenstein


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About