JFarr has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I have a question on how to build a hash from a string. I've searched the O'Reilly book and the Categorized Questions here, but nothing really explains how to do what I would like to do.
I'll have already read in a file that contains a string of partial directories, ie. /Workstation_X_X/<someotherpath>/filename.xxx.
How would I set this up to populate a hash?
Thanks in advance.
Perl NooBie
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Dynamic population of a hash
by friedo (Prior) on Nov 08, 2005 at 21:49 UTC | |
Re: Dynamic population of a hash
by ikegami (Patriarch) on Nov 08, 2005 at 21:53 UTC | |
Re: Dynamic population of a hash
by GrandFather (Saint) on Nov 08, 2005 at 22:02 UTC | |
by JFarr (Sexton) on Nov 08, 2005 at 22:14 UTC | |
by friedo (Prior) on Nov 08, 2005 at 22:19 UTC | |
by GrandFather (Saint) on Nov 08, 2005 at 22:20 UTC | |
by Roy Johnson (Monsignor) on Nov 08, 2005 at 22:45 UTC | |
by Anonymous Monk on Nov 09, 2005 at 15:12 UTC | |
by Roy Johnson (Monsignor) on Nov 09, 2005 at 15:41 UTC |
Back to
Seekers of Perl Wisdom