in reply to Re^3: Extracting columns from a two dimensional array
in thread Extracting columns from a two dimensional array

OK. Thanks for the advice on for (;;) loops vs foreach loops. That's just the kind of obvious thing that I don't know.

Either idiom works for me. I try to program for a hypothetical programmer who'll have to support my stuff after I'm gone...and who knows less than me - a scary proposition in anyone's book. Anyway, if there's an inelegant but clear way of doing something and an elegant but obscure way of doing something, I'll take the clear/inelegant one - assuming there's no significant performance hit 'cause yes, I do benchmark my code. I'm translating someone else's undocumented, c-shell spaghetti code into Perl and I don't want to do unto others as was done unto me.

Jack

Cogito cogito, ergo cogito sum
(I think I think, therefore I think I am)
  • Comment on Re^4: Extracting columns from a two dimensional array

Replies are listed 'Best First'.
Re^5: Extracting columns from a two dimensional array
by Aristotle (Chancellor) on Dec 21, 2004 at 16:29 UTC

    Oh goodie. C shell? I think the “spaghetti” bit is redundant in that sentence… :-) Good luck with that — and commendations on your good habits.

    Makeshifts last the longest.