in reply to Re: File::Util list_dir question
in thread File::Util list_dir question

Thanks very much holli.

I passed right by it and should have been more attentive...but it is there so I'll call it a lowercase rtfm.

Replies are listed 'Best First'.
Re^3: File::Util list_dir question
by holli (Abbot) on Nov 30, 2009 at 17:13 UTC
    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.
      "Half baked homegrown" ... what do you suggest should be different? To use die instead of exit?
      --
      Tommy
        Exactly.


        holli

        You can lead your users to water, but alas, you cannot drown them.