> > my %students : sorted( $ME{^1}{GPA} <=> $ME{^0}{GPA} );
> >
> Yes, I was thinking the same thing. Except the '$ME' thing--what's that? (I
> must have missed that discussion...)
It's an idea that within a method call, the object reference would
not be passed as the first argument (or maybe, not *just* as the
first argument), but in a variable named $ME. I was pushing that
envelope a little.
> What's wrong with @_?
We're trying to sort like this:
sort $student{^1}{GPA} <=> $student{^0}{GPA} ), keys %student;
Within the %student's internals, %student is %ME :-)
Damian
- Re: RFC 124 (v1) Sort order for any hash David L. Nicol
- Re: RFC 124 (v1) Sort order for any hash Damian Conway
- Re: RFC 124 (v1) Sort order for any hash Jeremy Howard
- Re: RFC 124 (v1) Sort order for any hash Damian Conway
- Re: RFC 124 (v1) Sort order for any hash David L. Nicol
- RFC for $ME class variable (was Re: RFC 12... Nathan Wiger
- Re: RFC for $ME class variable (was Re: R... Damian Conway
- Re: RFC for $ME class variable (was Re... Randal L. Schwartz
- Re: RFC for $ME class variable (w... John Siracusa
- Re: RFC for $ME class variabl... Randal L. Schwartz
- Re: RFC for $ME class var... Bryan C . Warnock
- Re: RFC for $ME class var... Graham Barr
- Re: RFC for $ME class variabl... Damian Conway
- Re: RFC for $ME class var... John Siracusa
