in reply to Re: trouble with evaluate
in thread trouble with evaluate
Thank you! You guys are really amazing. I think your approach is basically the same as what sundialsvc4 was suggesting. I'm still struggling to grasp how Perl objects work. JavaFan wrote "A Perl object is a reference that's blessed into a package", and if I understand your code right, the reference in this case is to the hash that contains the parameters ("bless \%params, $class"). I agree that what I'm trying to do is trivial, but I am none the wiser about why none of the other versions suggested worked, except that the evaluation of the passed variable name was problematic.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: trouble with evaluate
by GrandFather (Saint) on Apr 09, 2011 at 03:32 UTC | |
|
Re^3: trouble with evaluate
by AnomalousMonk (Archbishop) on Apr 09, 2011 at 10:04 UTC |