Think about Loose Coupling | |
PerlMonks |
Re: Help with a regexby grinder (Bishop) |
on Sep 07, 2007 at 14:46 UTC ( [id://637667]=note: print w/replies, xml ) | Need Help?? |
Your substr didn't work because the code doesn't check to see if rindex found the '.' it was looking for. If you do that, you don't need a regexp at all.
... just in case you wanted to know why your code wasn't working as expected. • another intruder with the mooring in the heart of the Perl
In Section
Seekers of Perl Wisdom
|
|