laziness, impatience, and hubris | |
PerlMonks |
Re: Re: Short (and clever?) CSV-to-AoAby scott (Chaplain) |
on Apr 24, 2001 at 00:21 UTC ( [id://74859]=note: print w/replies, xml ) | Need Help?? |
1. You assign to an array in a for loop. That usually is a sign for something inefficient. It seemed more 'cool' to me than inefficient. I particularly liked the fact that I could get away with only one synthetic variable and that a loop counter (of sorts). Why is it inefficient? 2. Your use of $#i will put all data in one array, so you technically don't have an AoA, but just an array. Errr ... but it *does* produce an AoA. Gives
3. You can loose the push/pop mechanism ... See my comment to merlyn.
In Section
Meditations
|
|