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

Re^3: moving from mac to PC

by haukex (Archbishop)
on Oct 28, 2016 at 14:26 UTC ( [id://1174902]=note: print w/replies, xml ) Need Help??


in reply to Re^2: moving from mac to PC
in thread moving from mac to PC

Hi Your Mother,

I've read many good things about Path::Tiny but haven't had the chance to really use it. One thing that held me back a little from switching from ::Class to ::Tiny is that Path::Class uses File::Spec internally, while Path::Tiny apparently does not (or only partially) - its doc says:

Path::Tiny does not try to work for anything except Unix-like and Win32 platforms. Even then, it might break if you try something particularly obscure or tortuous. ... All paths are forced to have Unix-style forward slashes.

So at the moment it feels a little safer and more portable to stick with Path::Class - not a particularly good reason, I know :-) So I'll definitely try out Path::Tiny when I get the chance.

Thanks,
-- Hauke D

Replies are listed 'Best First'.
Re^4: moving from mac to PC
by afoken (Chancellor) on Oct 28, 2016 at 17:52 UTC
    All paths are forced to have Unix-style forward slashes.

    So at the moment it feels a little safer and more portable to stick with Path::Class

    Well, except for pre-OSX Macs, forward slashes should not be a problem. But File::Spec has a design problem.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2026-03-05 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    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.