in reply to Re^9: Saving sql results to an array all rows?
in thread Saving sql results to an array all rows?
my @data = map { [$_, split(/\./, (split /\s+/, $_)[1])]} @al +l_rows; #print Dumper @data; my @sorted = map{$_->[0]} sort {$a->[1] cmp $b->[1]} map { [$_, inet_aton($_->[1]) ]} @data; print Dumper @sorted; } Results $VAR1 = [ [ '2008-07-26', '13.168.1.1' ] ]; $VAR2 = [ $VAR1->[0] ]; $VAR1 = [ [ '2008-07-26', '10.169.1.1' ] ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Saving sql results to an array all rows?
by Cristoforo (Curate) on Aug 21, 2008 at 16:10 UTC | |
by learningperl01 (Beadle) on Aug 21, 2008 at 17:33 UTC | |
by learningperl01 (Beadle) on Aug 21, 2008 at 17:52 UTC |