laziness, impatience, and hubris | |
PerlMonks |
Re: How to find code written by smart peopleby jplindstrom (Monsignor) |
on Aug 21, 2006 at 16:46 UTC ( [id://568609]=note: print w/replies, xml ) | Need Help?? |
Personally I like to do it like this1:
It depends a little on what we're really after here but in my experience it's generally not very interesting whether the directory could be created or not. What's interesting is that it's there so we can do stuff with it. So that's what we test for. /J 1) Encapsulated into ensure_dir($dir).
In Section
Meditations
|
|