There's more than one way to do things | |
PerlMonks |
Re: read the file and assign each line to a hash????by swampyankee (Parson) |
on Sep 08, 2006 at 18:23 UTC ( [id://572051]=note: print w/replies, xml ) | Need Help?? |
One major flaw in your concept will be exposed by files which contain "To:" more than once: Perl hash keys must be unique, which means that the hash's value will be overwritten each time "To:" shows up.
Unless this is a rather bizarre (and poorly specified) homework assignment (it isn't, is it?), you should:
emc At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation. —Igor Sikorsky, reported in AOPA Pilot magazine February 2003.
In Section
Seekers of Perl Wisdom
|
|