No such thing as a small change | |
PerlMonks |
Re: Reading from text fileby NetWallah (Canon) |
on Mar 23, 2018 at 05:52 UTC ( [id://1211588]=note: print w/replies, xml ) | Need Help?? |
Welcome to perlmonks!
You can do this by parsing each line of input, collecting the required pieces into an appropriate data structure (I suggest a hash).
We do not generally answer 'homework' questions when no effort is shown, so
the following code does works, but is deliberately cryptic. I'm sure this code will generate more questions. Please post those here , showing how it conflicts with your understanding. Alternatively, post some code you have tried, and ask questions about which parts cause you difficulty. Memory fault -- brain fried
In Section
Seekers of Perl Wisdom
|
|