Re: Distinguishing between scalars and objects (Re: RFC 21 (v1) Replace C<wantarray> with a generic C<wa)
[email protected] (Nathan Wiger) Fri, 04 Aug 2000 14:54:48 -0700
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Organization | Sun Microsystems |
| Message-ID | <[email protected]> |
> > $year = $date->{year}; # be accessed as a method
Just to nitpick a little, what I was after wasn't a hash ref, but
instead a
$date->year()
function. I think the result is that this can still be done, but I
wanted to clarify.
-Nate