Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: extract file name from a dynamic path

by Anonymous Monk
on Sep 07, 2008 at 06:12 UTC ( [id://709612]=note: print w/replies, xml ) Need Help??


in reply to Re^2: extract file name from a dynamic path
in thread extract file name from a dynamic path

Just keep reading, it says
C<basename()> returns the last level of a filepath even if the last level is clearly directory. In effect, it is acting like C<pop()> for paths. This differs from C<fileparse()>'s behaviour. # Both return "bar" basename("/foo/bar"); basename("/foo/bar/");

Replies are listed 'Best First'.
Re^4: extract file name from a dynamic path
by alexm (Chaplain) on Sep 07, 2008 at 18:33 UTC

    I was blind when I read that, thanks :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2026-01-18 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (121 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.