in reply to Re^2: How do i extract 3 variables from each line in a file, and print them to a new file
in thread How do i extract 3 variables from each line in a file, and print them to a new file
for (@matches) { print "$_,"; } print "\b ";
(Sorry about replacing foreach with for - someone mentioned to me earlier that it's faster and works the same way anyways)
Personally, I prefer Transient's way of doing things... although I don't quite understand why it parses split first and then map...
--------------------------------
An idea is not responsible for the people who believe in it...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How do i extract 3 variables from each line in a file, and print them to a new file
by Transient (Hermit) on Jul 08, 2005 at 18:12 UTC | |
by bofh_of_oz (Hermit) on Jul 08, 2005 at 18:18 UTC | |
Re^4: How do i extract 3 variables from each line in a file, and print them to a new file
by pbeckingham (Parson) on Jul 08, 2005 at 19:26 UTC |