Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
We don't bite newbies here... much
 
PerlMonks  

Re^3: Favourite modules April 2003

by kwilliams (Sexton)
on Feb 09, 2005 at 15:59 UTC ( [id://429510]=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: Re: Favourite modules April 2003
in thread Favourite modules April 2003

Maybe you'd like Path::Class better. I sure do, and I hope it isn't just because I wrote it. -Ken

Replies are listed 'Best First'.
Re^4: Favourite modules April 2003
by barbie (Deacon) on Mar 07, 2005 at 13:39 UTC
    This only hides File::Spec underneath the covers. I expect I'd still encounter the same problems as I did before, as it will still stringify to the OS you're on. As I use Windows mostly, it doesn't integrate with Find::Find and others without some meddling.

    I have most problems with code written by others who aren't aware of the problems. Whether they use File::Spec or Path::Class, I don't see any difference between the return values being Windows style and then breaking when used directly in Find::Find or File::Basename. For them to work correctly you'll need to have:

    $file->as_foreign('Unix')
    all over the place, which kind of defeats the object of using Path::Class in the first place :(

    --
    Barbie | Birmingham Perl Mongers user group | http://birmingham.pm.org/

Log In?
Username:
Password:

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