in reply to Re: Short (and clever?) CSV-to-AoA
in thread Short (and clever?) CSV-to-AoA
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.
Givesprint join( ', ' , @AoA ) , "\n";
ARRAY(0x1b9528c), ARRAY(0x1b952a4), ARRAY(0x1b952d4)
3. You can loose the push/pop mechanism ...
See my comment to merlyn.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:{3} Short (and clever?) CSV-to-AoA
by jeroenes (Priest) on Apr 24, 2001 at 09:10 UTC |