|Pathologically Eclectic Rubbish Lister|
Re: Parsing a text fileby wade (Pilgrim)
|on Apr 16, 2008 at 16:50 UTC ( #680861=note: print w/replies, xml )||Need Help??|
Other posters have already provided fine solutions so I won't go there but, in general, your code should always include:
The other posters did hint at that but I wanted to be more explicit.
Also, in the future it would be especially cool if you would clearly flag homework in the header line.
Hope this helps!(update: minor clarification mod)
In Section Seekers of Perl Wisdom