in reply to Re: = vs cmp
in thread <=> vs cmp
whoops! I obviously am as stupid as I look. Didn't really notice this because all my ints are pretty much the same length, and the sorting by int gives fairly randomised results, anyway. Actually, I could zero-fill my script generated numbers, and store them that way.. That way I'd get the speed of sorting using cmp, and slightly simpler code.
Hmmm, goes off and thinks.
Hmmm, goes off and thinks.
|
---|
In Section
Seekers of Perl Wisdom