[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Perl tips
On Mon, Nov 25, 2002 at 04:05:40PM +0000, Dave Mitchell wrote:
> Except of course that the function will be called NlogN times, which
> may then make it rather slow.
O(NlogN) function versus a similar order data structure - I think I
did point out that it would be exchanging speed for space :)
> > BTW, I think you want the ufo operator in your example, like mine?
>
> Either will work in this example.
> (PS - I don't think you really meant $2$3$4 :-)
Sorry, you're right - originally I did a (.*)-.., and re-ordered the
return to be $2$3$4$1, with cmp, but of course changed it (it's
already alphabetized on the first column...) and got confused. Never
mind :o)
Cheers,
Alex.
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.