in reply to Re: Extract string from rear of string
in thread Extract string from rear of string
$ext = (split /\./, $fname)[-1];
But neither take note of the fact that the file might not have an extention...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extract string from rear of string
by hacker (Priest) on Dec 28, 2001 at 15:20 UTC | |
by ichimunki (Priest) on Dec 28, 2001 at 22:49 UTC |