Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Uploading Time (getting last element of a path)

by Aristotle (Chancellor)
on Jun 14, 2002 at 08:47 UTC ( [id://174434]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $fullname = "C:\\apple\\index.htm";
    my ($file) = $fullname =~ m!([^/\\]+)$!;
    print $file;
    
  2. or download this
    use File::Basename; # I ain't afraid of no ghosts..
    $fullname = "C:\\apple\\index.htm";
    my $file = basename $fullname;
    print $file;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://174434]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found