Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: Schwartzian Transform and memory allocation.

by flounder99 (Friar)
on Jun 20, 2002 at 13:41 UTC ( #176009=note: print w/replies, xml ) Need Help??

in reply to Re^2: Schwartzian Transform and memory allocation.
in thread Schwartzian Transform and memory allocation.

I think the

sort { $a->[$variable-1] cmp $b->[$variable-1] },

line should be

sort { $a->[$variable] cmp $b->[$variable] },

The -1 was added by abigail to skip over the $_ that was tacked on at the beginning of the anon array. You're no longer doing that.



Replies are listed 'Best First'.
Re^4: Schwartzian Transform and memory allocation.
by Aristotle (Chancellor) on Jun 20, 2002 at 22:53 UTC
    No, actually, Abigail added the -1 because there was no longer an extra element to skip over. It doesn't make sense to subtract 1 to skip over an extra element, does it? The same premise holds true in my snippet as well.

    Makeshifts last the longest.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://176009]
[robby_dobby]: guess I have to take a look at it off-work. I don't understand what those words mean, honestly :-)
[Corion]: Oooh. Tinc really looks good. It seems that it could even be used to link up (a segment of) my home network with (a segment of) a friends network, to create a private network over the internet
[marto]: fun times :)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2018-01-17 14:59 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (201 votes). Check out past polls.