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
In reply to Re: reverse chop/string chop ?
by Roger
in thread reverse chop/string chop ?
by th3monk3y
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |