Gossamer Forum
Home : General : Perl Programming :

Help me to get the filename !

Quote Reply
Help me to get the filename !
Hello !

For example: I have this:

$url ="http:://YAHOO.COM/something/blabla/folder/face.gif";

What is the easiest way to get

$filename ="face.gif";

Hope you understand what I mean ! Thanks

N.A
Post deleted by Wil In reply to
Quote Reply
Re: [newage24] Help me to get the filename ! In reply to
Code:
my ($file) = $url =~ m|([^/]+)$|;