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...

regards,
tomte


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