Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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?
Jar. Jar!...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2018-06-24 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?