|
|
| We don't bite newbies here... much | |
| PerlMonks |
(ichimunki) Re x 4: Extract string from rear of stringby ichimunki (Priest) |
| on Dec 28, 2001 at 22:49 UTC ( #134936=note: print w/ replies, xml ) | Need Help?? |
|
Begging your pardon, but the split shown returns the last bit of stuff after the final dot, which I think complies with the rather vague request of getting the extension. In your example, the extension is 'gz' after all. That's the beauty of negative indices, they work from the other end.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||