Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Answer: How do I extract a file name from a path string

by Fastolfe (Vicar)
on Oct 04, 2000 at 21:04 UTC ( #35298=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > How do I extract a file name from a path string - Answer contributed by Fastolfe

You should consider solving your problem in a different way. By using the opendir and readdir functions to get the entries in a directory, you automatically have the filename separate from the directory name, and you can do it all without spawning an external process.

  • Comment on Answer: How do I extract a file name from a path string
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Discipulus]: since 2002 I just usewd www.perlmonks.org and good morning
Discipulus .oO(maybe a PM discussion?)
[Corion]: Discipulus: Yeah, I left a note to the replies mentioning pairsite.com ;)

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









    Results (293 votes). Check out past polls.

    Notices?