Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Paths for filenames from Windows with TYPE=file

by bwana147 (Pilgrim)
on Jun 27, 2001 at 16:03 UTC ( [id://91958]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Paths for filenames from Windows with TYPE=file
in thread Paths for filenames from Windows with TYPE=file

I thought File::Basename was a portable way of getting the basename from a local path, i.e., it takes care of your platform's oddities for you.

But in that case, the filename you get is the full path on the user's machine, and I don't think File::Basename can determine what OS it is running and what a path separator looks like there.

So your first advice seems the best to me: throw away the filename!

--bwana147

  • Comment on Re: Re: Paths for filenames from Windows with TYPE=file

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://91958]
help
Sections?
Information?
Find Nodes?
Leftovers?
    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.