Syntactic Confectionery Delight | |
PerlMonks |
creating a hash from a text file.by changma_ha (Sexton) |
on Jul 27, 2010 at 06:51 UTC ( [id://851475]=perlquestion: print w/replies, xml ) | Need Help?? |
changma_ha has asked for the wisdom of the Perl Monks concerning the following question: i know it this question seem to be silly but i am struck here. i have a text file like 1 human 2 flower 3 fruits 5 human 6 car 9 flower asdgjhashdnh gsdh sjs klja now i want my output to be like 1= human 2= flower 3 =fruits 5 =human 6= car 9= flower my code is :
plz give me wiser . what can be the mistake
Back to
Seekers of Perl Wisdom
|
|