Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by Aristotle (Chancellor)
on Jun 14, 2002 at 08:47 UTC ( #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
Node Status?
node history
Node Type: note [id://174434]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2017-09-25 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (277 votes). Check out past polls.

    Notices?