Peter Scott wrote:
>
> Maybe I'm just being dense, but why shouldn't arrays and hashes inherit
> attributes from UNIVERSAL?
I think, rather, they should inherit from some other root class,
since UNIVERSAL is for blessed things.
> Hmm, am I saying that I should be able to
> write @array->method()?
Of course you already can, just not with that syntax:
scalar(@array)
$#array
keys(%hash)
values(%hash)
etc. etc.
--
John Porter
By pressing down a special key It plays a little melody
- Re: RFC 355 (v1) Leave $[ alone. Nicholas Clark
- Re: RFC 355 (v1) Leave $[ alone. Nicholas Clark
- Re: RFC 355 (v1) Leave $[ alone. Bart Lateur
- Re: Variable attributes (was Re: RFC 355 (v1) Leave $... John Porter
- Re: Variable attributes (was Re: RFC 355 (v1) Leave $... Peter Scott
- Re: Variable attributes (was Re: RFC 355 (v1) Leave $... Nathan Wiger
- Re: Variable attributes (was Re: RFC 355 (v1) Lea... Peter Scott
- Re: Variable attributes (was Re: RFC 355 (v1)... Nathan Wiger
- Re: Variable attributes (was Re: RFC 355 (v1) Lea... John Porter
- Re: Variable attributes (was Re: RFC 355 (v1) Leave $... John Porter
- Re: Variable attributes (was Re: RFC 355 (v1) Leave $... David L. Nicol
- Re: RFC 355 (v1) Leave $[ alone. Glenn Linderman
