sdslrn123 has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to convert this format to:A = 1 A = 2 A = 3 B = 5 B = 1 B = 7 e.t.c C = .....
I am thinking while in data file split each line to letters and numbers. if next letter matches previous letter push into an array otherwise create a new array called B? Thanks for any advice. WOW! Thank You very much... EVERYBODY! Just one more thing: What if there is no space between the data? A = 1 A = 2 A = 3 B = 5 B = 1 B = 7 C = 4A = 1,2,3 B = 5,1,7 C = ... . . . Z = ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Converting Column Into Row
by derby (Abbot) on Jun 20, 2006 at 12:52 UTC | |
Re: Converting Column Into Row
by holli (Abbot) on Jun 20, 2006 at 12:55 UTC | |
by diotalevi (Canon) on Jun 20, 2006 at 13:13 UTC | |
by bart (Canon) on Jun 20, 2006 at 14:07 UTC | |
Re: Converting Column Into Row
by davorg (Chancellor) on Jun 20, 2006 at 12:56 UTC | |
Re: Converting Column Into Row
by Fletch (Bishop) on Jun 20, 2006 at 13:02 UTC | |
Re: Converting Column Into Row
by mickeyn (Priest) on Jun 20, 2006 at 13:02 UTC | |
Re: Converting Column Into Row
by Jasper (Chaplain) on Jun 20, 2006 at 13:13 UTC | |
Re: Converting Column Into Row
by Moron (Curate) on Jun 20, 2006 at 14:46 UTC |