go ahead... be a heretic | |
PerlMonks |
Re: extracting data from fileby space_monk (Chaplain) |
on Nov 15, 2012 at 14:30 UTC ( [id://1004027]=note: print w/replies, xml ) | Need Help?? |
Whilst the answers using split are reasonable solutions, your file is really a CSV (Comma Separated Value) file, so the "professional" answer is to use a module such as Text::CSV to do the work for you.
A Monk aims to give answers to those who have none, and to learn from those who know more.
In Section
Seekers of Perl Wisdom
|
|