Syntactic Confectionery Delight | |
PerlMonks |
Re^3: How do i extract 3 variables from each line in a file, and print them to a new fileby bofh_of_oz (Hermit) |
on Jul 08, 2005 at 17:59 UTC ( [id://473516]=note: print w/replies, xml ) | Need Help?? |
That would print a comma at the end of the output string, so you would need a way to prevent it, let's say, like this:
(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...
--------------------------------
In Section
Seekers of Perl Wisdom
|
|