develooper Front page | perl.perl5.porters | Postings from April 2000

Re: A quick study guide for Perl regexps

Thread Previous
From:
Ilya Zakharevich
Date:
April 11, 2000 18:53
Subject:
Re: A quick study guide for Perl regexps
Message ID:
200004120153.VAA08795@monk.mps.ohio-state.edu
Mark Kvale writes:
>     "/usr/bin/perl" =~ m"/perl"; # matches, '/' becomes ordinary char

"Matches after '/usr/bin'" ?

>     'housecat' =~ /$foocat/;   # doesn't match, there is no $foocat

I do not think this a good example.  Empty RExen should be avoided as
long as possible.

Ilya

Thread Previous


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