There's more than one way to do things | |
PerlMonks |
Re: Extract string after removing the substringby Athanasius (Archbishop) |
on Oct 24, 2012 at 15:31 UTC ( [id://1000658]=note: print w/replies, xml ) | Need Help?? |
Here’s another way: If you don’t need the original string anymore, just give an empty string as the REPLACEMENT argument to substr:
Hope that helps, Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|