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

Could you get around that by just doing eval{ $child->parent->grandparent->bar()} if($@){} And check $@ for 'method on undef' or whatever the exact string is?

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Autoboxing: Yes or No?
by mirod (Canon) on Jan 01, 2004 at 20:22 UTC

    Sure, I could, it would just be ugly. Methods on undef let me write more natural and concise Perl.