> > I am dumping rows of an array into an excel file. I would like those > rows to be sorted. If I wanted them to be sorted by the first elements > how would I do it?
Try this: @AoA = sort { $a->[0] cmp $b->[0] } @Aoa; > > Code > ---- > #!/usr/bin/perl -w > use strict; > use Spreadsheet::WriteExcel; > open IN, ($ARGV[0]); > my @AoA; > while (<IN>){ > chomp; > push (@AoA,[(split /\|/,$_)]); > } > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]