On Thu, Aug 04, 2005 at 10:48:49PM -0700, Brent 'Dax' Royal-Gordon wrote:
: Luke Palmer <[EMAIL PROTECTED]> wrote:
: > On 8/4/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote:
: > >     my $undef = undef;
: > >     say $undef.chars?   # 0? undef? die?
: > >     say chars $undef;   # 0? undef? die?
: > >
: > > I'd opt for "undef.chars" to be an error ("no such method") and "chars
: > > undef" to return 0 (with a warning printed to STDERR^W$*ERR).
: > 
: > Well, I think that "chars $undef" should be exactly equivalent to
: > "$undef.chars".  In fact, I think it is: "chars $undef" is just the
: > indirect object form.
: 
: Didn't $Larry rule that method calls on undef return undef, for the
: same reason array and hash subscripting does?

Um, by default, that's exactly what fail does.  I don't think it's
a problem for it to die under "use fatal", since that's saying you
prefer an exception model in general.

Larry

Reply via email to