![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: Help with pushing into a hashby CountZero (Bishop) |
on Aug 29, 2012 at 19:56 UTC ( #990548=note: print w/replies, xml ) | Need Help?? |
I did it so: I have assumed that the stray space at the first line of your first file is just a typo. Note that this will still do the right thing if you have multiple lines in your second file with the same accession numbers: their data will just be added to right array in the hash. CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James My blog: Imperial Deltronics
In Section
Seekers of Perl Wisdom
|
|