in reply to Re: Re: Re: Autoboxing: Yes or No?
in thread Autoboxing: Yes or No?

Another alternative:
eval { $some->big->chain->of->calls } die $@ if($@ && $@ =~ /\^Can't call method .* on an undefined/)
Add sugar to your taste

(Or Perl6's undef but ?something?;)

Replies are listed 'Best First'.
Re^5: Autoboxing
by Aristotle (Chancellor) on Jan 02, 2004 at 03:07 UTC
    BUU had already suggested that, though. mirod countered that he considered it ugly.

    Makeshifts last the longest.

      Yeah, I noticed that afterwards.
      If the error checking is wrapped up in a sub then it's less ugly, but maybe still too ugly for some.