|
|
| We don't bite newbies here... much | |
| PerlMonks |
assigning to a hash via splitby aardvark (Pilgrim) |
| on Feb 19, 2001 at 01:43 UTC ( [id://59325]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.aardvark has asked for the wisdom of the Perl Monks concerning the following question:
Happy Sunday Everybody,
Is there a way to assign to a hash via split? Here's what I've got so far:
Does anybody know of a better way to do this? Specifically, is there a way to assign to %rec during the split? Then, if I add another field all I have to do is add it to @fields. I really want less typing (Laziness, Impatience) so I can have more time to work on my Hubris. ;-) Get Strong Together!!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||