Problems? Is your data what you think it is? | |
PerlMonks |
Re: Help with building modulesby g0n (Priest) |
on Jan 26, 2006 at 15:20 UTC ( [id://525730]=note: print w/replies, xml ) | Need Help?? |
As a start, you could change your module like this:
That would allow you to access the module variables like this:
I.e. it makes the hash %params which contains your parameters the basis for the object you're creating - it then contains all the values you've passed to the constructor.
-------------------------------------------------------------- "If there is such a phenomenon as absolute evil, it consists in treating another human being as a thing." John Brunner, "The Shockwave Rider".
In Section
Seekers of Perl Wisdom
|
|