Hello list, are these statements the same in perl?
$ perl -le '$_="abc";if (!/\w+\d+/){print "not matched"}'
not matched
$ perl -le '$_="abc";if ($_ !~ /\w+\d+/){print "not matched"}'
not matched
or which is the better one?
Thanks.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
