Problems? Is your data what you think it is? | |
PerlMonks |
Re: Short (and clever?) CSV-to-AoAby jeroenes (Priest) |
on Apr 23, 2001 at 20:40 UTC ( [id://74761]=note: print w/replies, xml ) | Need Help?? |
Well, there are some things that might be useful:
1. You assign to an array in a for loop. That usually is a sign for something 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. 3. You can loose the push/pop mechanism, replace that with a map. This is how I would write that: You could also turn to Supersplit code. Have fun, Jeroen
In Section
Meditations
|
|