more useful options | |
PerlMonks |
Re: Need to grep for a string that ends with $$by wallisds (Beadle) |
on Mar 06, 2012 at 15:47 UTC ( [id://958100]=note: print w/replies, xml ) | Need Help?? |
Consider using regular expressions to do your matching:
The backslashes are used to literally match the $ which otherwise is interpreted as the special character which represents the end of the string. We use a bare $ later to show we are only looking for matches at the end of the string.
In Section
Seekers of Perl Wisdom
|
|