Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Re: Re: Re: Runtime Hash Variable access

by Tomte (Priest)
on Mar 08, 2004 at 15:03 UTC ( #334832=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Runtime Hash Variable access
in thread Runtime Hash Variable access

What Juerd tries to explain, IMVHO, is:

If you feel the need to access variables whose names are unbeknownst to you, you should use a hash, whose name is known to you, with these unkown names as keys.

There are very few situations where it's considered good design to use symbolic references (e.g. on-the-fly generation of objects implementing a known interface), and accessing variables is almost never one of them.

Just my $0.02...


Hlade's Law:

If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.

  • Comment on Re: Re: Re: Re: Runtime Hash Variable access

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2023-10-04 21:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found