in reply to Re: sort after split
in thread sort after split
open (DB1,"logfile.log") or die("There was a problem opening the file. +"); while ($entry=<DB1>) { chomp $entry; @fields = sort { $a cmp $b } split /\t/, $entry; #@fields=split(/ /,$entry); #chomp @fields; foreach $entry (@fields){ $_ =~ s/\n/\,/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sort after split
by Not_a_Number (Prior) on Dec 05, 2007 at 23:40 UTC |