Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2015-12-01 23:18 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (29 votes), past polls