samoguz has asked for the wisdom of the Perl Monks concerning the following question:
while (<>){ chomp; @line = join (" * ", (split/ /)[1,0]),"\n"; @line2 = sort @line , "\n"; print @line2 . "\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: sorting a file
by mp (Deacon) on Sep 10, 2002 at 19:02 UTC | |
Re: sorting a file
by kabel (Chaplain) on Sep 11, 2002 at 07:04 UTC | |
Re: sorting a file
by Molt (Chaplain) on Sep 11, 2002 at 14:43 UTC | |
Re: sorting a file
by Juerd (Abbot) on Sep 11, 2002 at 14:07 UTC |