Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

OT: Cwd is indeed pain

by Courage (Parson)
on May 28, 2005 at 13:43 UTC ( #461342=note: print w/ replies, xml ) Need Help??

in reply to Re: Perl6 - Module::Build
in thread Perl6 - Module::Build

Now I know I'm not the only one with problems with Cwd.

While it certainly should be built into perl.dll (speaking of Win32), it is not, and some non-trivial usages of Cwd from Perl built into C makes my program even segfault.
I therefore trade portability and use Win32::GetCwd which in turn built into perl.dll

Also, during its execution it constantly checks for $^O, suspecting my script to start on Win32 and then continue working on VMS.

FWIW Cwd is a perfect example of poorly designed module, however visually it looks sane but implemented insane, yet its task is trivial.

Comment on OT: Cwd is indeed pain
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2015-11-25 17:51 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (684 votes), past polls