Bart Lateur <[EMAIL PROTECTED]> wrote: > On Fri, 8 Sep 2006 08:19:21 -0700 (PDT), John Douglas Porter wrote: > > >If you really want to test the ref type, do so > >robustly using the methods in Scalar::Util. > > I'm not convinced that is indeed the best approach. > . . . > Thus: treat only an unblessed scalar ref as a scalar ref.
I meant in general. I don't feel (as I said before) that excessive ref testing is appropriate in situations like this. But if you want to be anal, and throw your own exceptions on the wrong types of refs, then Scalar::Util lets you avoid having to reinvent the ref-testing wheel, mostly. -- John Douglas Porter __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com