Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 musing on the Monastery: (6)
As of 2014-11-26 21:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (174 votes), past polls