Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^3: Practical example of "Is Perl code maintainable"

by EvanCarroll (Chaplain)
on Aug 13, 2007 at 22:42 UTC ( #632332=note: print w/replies, xml ) Need Help??

in reply to Re^2: Practical example of "Is Perl code maintainable"
in thread Practical example of "Is Perl code maintainable"

Bravo, I just wanted to post the suggest for File::stat but you beat me to it. I would suggest you not return -1 for two things that could be a result of a vastly different failure, and I would instead die if I failed to stat the object. I also wouldn't import stat() as failing to include File::stat would surely result in a runtime error, and not the expected compile-time. (in addition two names for the same function has a potential to confuse, as does pollution is any form)

Evan Carroll

Replies are listed 'Best First'.
Re^4: Practical example of "Is Perl code maintainable"
by xdg (Monsignor) on Aug 14, 2007 at 02:51 UTC
    I would suggest...

    So would I, but I was just trying to duplicate the OP's example.


    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://632332]
[Discipulus]: I miss a bit the sunny balconny of my previous flat.. but since june to september is better facing north
[Corion]: Discipulus: Yeah, I can see that reasoning :) But spending 5 minutes in the sun today quite improved my mood :)
[marto]: lazyweb Q: so an IE window apparently opened via JS with toolbars=no, all other IE instances closed. Click a URL in an email or whatever, and it doesn't open a new window or tab.
[marto]: does JS lock down windows created via to prevent this?

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

    Results (267 votes). Check out past polls.