in reply to Re: Re: Re: Array of arrays used within object - crude substitute
in thread Array of arrays used within object
You're just running into the normal problems in trying to figure out how to design and implement objects when you haven't done it a lot before.
I don't think I can solve the problems you're running into given the information I have at hand, but I would encourage you to take the time to learn Perl OO when you get past the current deadline crunch. Designing the code cleanly from the start helps alleviate a lot of roadblocks you might run into otherwise.
A simpler step to avoid global variables than converting your code completely to OO, might be to learn about Perl references and pass the big arrays around by reference to your different subroutines.
|
|---|