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: Variable attributes (was Re: RFC... Nathan Wiger
- Re: Variable attributes (was Re: RFC... Peter Scott
- Re: Variable attributes (was Re: RFC... Nathan Wiger
- Re: Variable attributes (was Re: RFC... Dan Sugalski
- Re: Variable attributes (was Re: RFC... Peter Scott
- Re: Variable attributes (was Re: RFC... Nathan Wiger
- Re: Variable attributes (was Re: RFC... Peter Scott
- Re: Variable attributes (was Re: RFC... Nathan Wiger
- Re: Variable attributes (was Re: RFC... John Porter
- Re: Variable attributes (was Re: RFC... Dan Sugalski
- Re: Variable attributes (was Re: RFC... John Porter
- Re: Variable attributes (was Re: RFC... David L. Nicol
- Re: RFC 355 (v1) Leave $[ alone. Nathan Wiger
- Re: RFC 355 (v1) Leave $[ alone. Nicholas Clark
- Re: RFC 355 (v1) Leave $[ alone. Trond Michelsen
- Re: RFC 355 (v1) Leave $[ alone. Glenn Linderman
