Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: How to map a directory tree to a perl hash tree

by Rudif (Hermit)
on Mar 11, 2001 at 00:52 UTC ( [id://63519]=note: print w/replies, xml ) Need Help??


in reply to Re: How to map a directory tree to a perl hash tree
in thread How to map a directory tree to a perl hash tree

AVOID STRING EVAL

I will.
I did have an inkling that a solution involving multiple references to the same data item (a nascent hash entry), perhaps combined with recursion, should be possible, but I could not see how it would fit together. But then as I wrote some test cases, initializing multilevel hashes, it dawned on me that I could construct similar Perl code on the fly and eval it - my first ever creative use for string eval. I must admit, I took the easy way out .-(
I probably cost me a --, but I'm wiling to pay my way.

Rudif
  • Comment on Re: Re: How to map a directory tree to a perl hash tree

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://63519]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-04-18 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found