|
|
| Perl: the Markov chain saw | |
| PerlMonks |
noob with hash/data file questionby bhall (Initiate) |
| on Sep 02, 2008 at 08:10 UTC ( [id://708412]=perlquestion: print w/replies, xml ) | Need Help?? |
|
bhall has asked for the wisdom of the Perl Monks concerning the following question:
This seemed like it would be easy when I decided to do it but it turned out to be a bit more difficult than I would have thought.
Basically, I've got a file. data.txt that is full of data formatted like this: name|value and in side a script i've got a hash %stuff ( ); I want the data to go inside the hash. I've done this and dozens of other variations
While there are no errors that are obvious with in the scripts performance, the desired outcome does not happen. short is supposed to filter to place. Think of it as a word filter.. Now, it works perfectly when I actually have the hash data there in this format 'short' => 'place', but I can't get it to properly read and covert from the data file. Any suggestions or ideas on what I'm doing wrong? Thanks in advance
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||