Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Re: Re: Re: convert windows path

by Tyke (Pilgrim)
on Nov 06, 2001 at 15:26 UTC ( #123549=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: convert windows path
in thread convert windows path

If you're just trying to extract a file from a path then something like

$var =~ /([^\\\/]*)$/ and $file = $1
should work. (I'm sure that there's a FAQ on this). Or you might want to try one of the File::Path modules, but that's probably overkill.


Comment on Re: Re: Re: Re: Re: convert windows path
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2016-02-06 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (235 votes), past polls