Thanks for the reply, Jason.
I agree, that WOULD make the arrays available WITHIN function_2.
However, it seems like they would be GLOBAL (seen outside of
function_2), which is what I am trying to avoid.
In a nutshell, does the assignment:
@{$_} = param($_) foreach @array;
introduce global or (locally) scoped variables?
Jason Simms wrote:
>
> Why can't you say something like this:
>
> sub function2 {
> my @array = param('my_param');
>
> @{$_} = param($_) foreach @array;
>
> # Your arrays should be in scope here
> }
>
> Jason Simms
>
> >Hello,
> >How should I correctly make "Param" assignments availble to function_2
> >and NOT to function_1 ???
> >
> >#---------------------------
> >sub function_1 {
> > blah
> > blah
> >}
> >
> >sub function_2 {
> > my @array = param('This_Param');
> >
> > foreach (@array) {
> > my @{$_} = param($_); # ASSIGNMENT IN QUESTION
> > }
> >
> > # HERE I NEED TO USE THE "@whatever" ARRAYS
> > # BUT I DONT THINK THEY EXIST OUTSIDE THE "foreach (@array)" SCOPE
> >}
> >#---------------------------
> >
> >--
> >Brett Lee
> >Ned Davis Research Group
> >[EMAIL PROTECTED]
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
--
Brett Lee
Ned Davis Research Group
[EMAIL PROTECTED]