![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: readdir() only returns one result when used with Fatal.pmby Tomte (Priest) |
on Apr 11, 2006 at 09:19 UTC ( #542491=note: print w/replies, xml ) | Need Help?? |
Seems to be a bug in context evaluation in FATAL, this code works and throws an exception when readdir returns undef:
Update 2006/04/28: This apparently isn't a bug in Fatal, but simply the fact that readdir can't be correctly "fatalized" 'cause it doesn't clearly indicates failure (and only failure) returning a false value. The documentation of Fatal will be updated to reflect better when to use it.
regards,
An intellectual is someone whose mind watches itself.
In Section
Seekers of Perl Wisdom
|
|