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 reply to Re: Re: Re: if contains
by pfaut
in thread if contains
by nasa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |