Re: Quick questions: multi submethod and undef.method

2005-06-08 Thread Larry Wall
On Sun, Jun 05, 2005 at 10:22:16PM +0200, Ingo Blechschmidt wrote: : Hi, : : two quick questions: : : : Are multi submethods allowed? Presumably. : my $x = undef; : my $y = $x.some_method; : # $y now contains an unthrown exception object, saying that undef : # doesn't .can("some_method

Quick questions: multi submethod and undef.method

2005-06-05 Thread Ingo Blechschmidt
Hi, two quick questions: Are multi submethods allowed? my $x = undef; my $y = $x.some_method; # $y now contains an unthrown exception object, saying that undef # doesn't .can("some_method"), right? say $y; # Only now it dies, correct? This is important if you have a sub which may ei