in reply to reverse chop/string chop ?
Which prints:my $URL = "http://www.mysite.com/images/uploads/1050084447_4.jpg"; # retrieves the image name from the URL my $image_name = (split /\//, $URL)[-1]; print "$image_name\n";
1050084447_4.jpg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: reverse chop/string chop ?
by sauoq (Abbot) on Oct 22, 2003 at 06:44 UTC | |
|
Re: Re: reverse chop/string chop ?
by th3monk3y (Novice) on Oct 22, 2003 at 04:04 UTC |