in reply to Re: Re: scoping large arrays - newbie Q
in thread scoping large arrays - newbie Q

Can I choose point C? Here's an alternative:

{ my @bigarray = ("insert", "a very", "long list here"); # c sub mySub { for (@bigarray){ # do stuff with array } } }

This keeps @bigarray private to the subroutine but only initializes it once. You get the best of both worlds at no added cost!

-sam

Replies are listed 'Best First'.
Re: Re: Re: Re: scoping large arrays - newbie Q
by shotgunefx (Parson) on Jun 18, 2002 at 09:01 UTC
    I second that.

    -Lee

    "To be civilized is to deny one's nature."