Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: How to find code written by smart people

by Hue-Bond (Priest)
on Aug 25, 2006 at 17:16 UTC ( #569638=note: print w/replies, xml ) Need Help??

in reply to Re: How to find code written by smart people
in thread How to find code written by smart people

Why not use File::Path?

$ ls foo ls: foo: No such file or directory $ perl -MFile::Path -e 'mkpath "foo/bar/baz"' $ ls -d foo/bar/baz foo/bar/baz/

Update: Err, forget it. It's already been pointed out.

David Serrano

Replies are listed 'Best First'.
Re^3: How to find code written by smart people
by radiantmatrix (Parson) on Aug 25, 2006 at 19:46 UTC

    Because of this line in File::Path's POD:

    It returns a list of all directories (including intermediates, determined using the Unix '/' separator) created.

    That raises a concern that I'd have to pass mkpath a UNIX-style path -- the snippet I posted will accept any form supported by File::Spec::Functions. I like that better.

    A collection of thoughts and links from the minds of geeks
    The Code that can be seen is not the true Code
    I haven't found a problem yet that can't be solved by a well-placed trebuchet

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://569638]
[LanX]: Funny some weeks ago, I met people from the Cimbrian peninsula who didn't know it's called the Cimbrian peninsula ...
[LanX]: ... treid to make smalltalk and felt like Sheldon.
erix looks up Sheldon ...
[erix]: ah. well, that must feel nice, no? ;)
[erix]: not the best way to make friends, though (I suppose)
LanX Fun with Flags anyone?

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2018-03-22 18:49 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (283 votes). Check out past polls.