in reply to Re: Re: if contains
in thread if contains
Actually while $ does usually have a special meaning, Perl seems to try to do the Right Thing:
print 'aha' if('ab$de' =~ /$/);
print 'aha' if 'abcde' =~ /$/ also prints 'aha'. I do believe it's matching end of line, not the dollar sign.
90% of every Perl application is already written. ⇒ |
dragonchild |
|
---|
In Section
Seekers of Perl Wisdom