in reply to Re: Sorting one column of results
in thread Sorting one column of results
hello choroba,
Thank you for replying, I have adjusted the coding to the following but it still does not work?, please help?
my $infile="orders.txt"; my $output2 = 'orders_today.txt'; open (OUT, "+>$output2"); open (FILE, $infile) or die "ERROR: File does not exist\n"; for (<FILE>) { my @text =(); @text = split /\t/,$_; chomp @text; push (@text, $text[0]); push (@text, $text[1]); push (@text,$text[2]); push (@text,$text[3]); { $a->[10] cmp $b->[10] } print map @$_ }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Sorting one column of results
by choroba (Cardinal) on Nov 12, 2012 at 11:18 UTC | |
by perlnoobster (Sexton) on Nov 12, 2012 at 11:25 UTC | |
by Anonymous Monk on Nov 13, 2012 at 10:29 UTC |
In Section
Seekers of Perl Wisdom