in reply to Re: Re: Sorting strings
in thread Sorting strings
That should be:
but if I want to use the array that $array refrences I have to do
Sorry, I changed the example slightly and didnt change that line.
Anyway, the point to keep in mind that
I dont think %_ is used that much, but I could be wrong.$_=[]; # $_ now is a refrence to empty array (anonymous array) $_[0]=[]; # the zeroth element of the array @_ $_->[0]=[];# the zeroth element of the anonymous array $_{0}=[]; # the value associated with 0 in %_ $_{0}->[0]; # element zero in ^^^^^^^^ $_[0]->[0]; #zeroth element in array refrenced by the zeroth elemtn + of @_ $_->[0][0]={}; #dont need a second -> $_->{0}[0]={}; #this works too $_->[0]->[0]->{0}="but we can use -> if we want"; $_->{0}[0]{0}="This is getting confusing";
|
|---|