in reply to Re: Re: Re: Array of arrays used within object - crude substitute
in thread Array of arrays used within object

It sounds to me like you understand the problems created by the global variable and the right approach you would like to take in an ideal world--converting the code to an OO design.

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.

  • Comment on Re: Re: Re: Re: Array of arrays used within object - crude substitute