hello. im trying to get the file name off the end of a url Example: http://www.bing.com/default.aspx i want to get the default.aspx off the end of it. i'v tried:
$url = "http://www.bing.com/default.aspx"; @parse = split($url, "/"); $parse = @parse; $FileName = @parse[$parse]; print $FileName;
but it didn't work. is my syntax off or am i just taking the wrong approach?
THANKS SO MUCH FOR THE HELP!!!!
In reply to url and arrays by perlaintdead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |