changma_ha has asked for the wisdom of the Perl Monks concerning the following question:
hello all,
I am a newbie in perl.
i have a text file like:
i want an output likea 2 b 4,5,6 c d e 45,657,-67
is it possible to make the text data into complex structure of hash array?.plz help me out asap.a => [2] b =>[4,5,6] c =>[] d=> [] e=> [45,657,-67]
20100721 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: making a text file to an hash array
by rovf (Priest) on Jul 14, 2010 at 10:47 UTC | |
Re: making a text file to an hash array
by Ratazong (Monsignor) on Jul 14, 2010 at 10:51 UTC | |
| |
Re: making a text file to an hash array
by jethro (Monsignor) on Jul 14, 2010 at 10:49 UTC | |
Re: making a text file to an hash array
by suhailck (Friar) on Jul 14, 2010 at 11:00 UTC | |
by rovf (Priest) on Jul 14, 2010 at 14:06 UTC | |
Re: making a text file to an hash array
by johngg (Canon) on Jul 14, 2010 at 21:38 UTC | |
by changma_ha (Sexton) on Jul 15, 2010 at 04:07 UTC | |
by johngg (Canon) on Jul 15, 2010 at 20:36 UTC |
Back to
Seekers of Perl Wisdom