Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Using pure text and parsing it with split, ... instead of Perl code seems like quite a hassle I'd like to avoid. Is there any way to do this in Perl? The one thing I didn't understand is what "eval" does, and I couldn't get the syntax right for this one. Does anyone have a hint for me? I'd also welcome ideas on how to re-design this, if it's the case that I'm being blind as to a much easier way ;-)%hash1 = (fruits => ["apple", "pear"], things => ["table", "chair"] ); %hash2 = (fruits => ["pear", "banana"] countries => ["Turkey"] );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Including files (again)
by BrowserUk (Patriarch) on Jan 27, 2009 at 10:43 UTC | |
by JavaFan (Canon) on Jan 27, 2009 at 11:11 UTC | |
|
Re: Including files (again)
by cdarke (Prior) on Jan 27, 2009 at 14:16 UTC |