foreach ( @lines ) { my @cells = split ; push @data, \@cells ; }
I wouldn't exactly be showing this to a newbie. As the original poster pointed out, he has "never even programmed", I have been using perl for about two years, and I still have some problems with references..
maybe building a hash with original lines as keys and specific column as values would be easier to understand (but maybe harder on the memory, depends on how big is the list.) don't you agree?
In reply to Re: Re: Sorting big text lists
by Chady
in thread Sorting big text lists
by Infinity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |