in reply to Re^2: File::Util list_dir question
in thread File::Util list_dir question
No biggie. The interface of File::Util is non intuitive. Normally a method fatals (dies) or returns some kind of false on failure. File::Util does nothing of this.
It uses a halb baked homegrown error handler that, believe it or not, calls exit on a 'fatal' error (like not being able to recurse into a directory).
That's why you cannot trap it with eval nor with try{}catch{} (at least until said flag is specified).
holli
You can lead your users to water, but alas, you cannot drown them.
It uses a halb baked homegrown error handler that, believe it or not, calls exit on a 'fatal' error (like not being able to recurse into a directory).
That's why you cannot trap it with eval nor with try{}catch{} (at least until said flag is specified).
holli
You can lead your users to water, but alas, you cannot drown them.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: File::Util list_dir question
by Tommy (Chaplain) on Dec 08, 2009 at 13:37 UTC | |
by holli (Abbot) on Dec 08, 2009 at 14:07 UTC | |
by Tommy (Chaplain) on Dec 08, 2009 at 15:19 UTC |
In Section
Seekers of Perl Wisdom