in reply to Getting variables from mulitple subs at once?

If arrays are large, pass them as references (\@arrayname). If intervening subs have no use for the data they are passing through, consider a data hash which everyone would pass around. Subs would look in the hash for the data they need to do their work and would place there answers there as well.

Phil

  • Comment on Re: Getting variables from mulitple subs at once?

Replies are listed 'Best First'.
Re^2: Getting variables from mulitple subs at once?
by mdunnbass (Monk) on Feb 20, 2007 at 14:17 UTC
    Thanks Phil

    I had been thinking about maybe making a data hash. At first, I was wary, as it could possibly have grown to be very large, but on thinking more about it, I can discretely separate the large data structures from the smaller ones, and pass the larger ones far less frequently. So, that might just be what I need.

    Matt