Re: question regarding reference of a local variable

2006-02-03 Thread John W. Krahn
Pine Yan wrote: > Hi, Hello, > what happens to the memory space with the following code: > > my @full_list = (); > > if (...) { > my @tmp_list; > @tmp_list = split(...); No need for two statements there: my @tmp_list = split(...); > @full_list = (@full_list, [EMAIL PROTECTED]); > }

Re: question regarding reference of a local variable

2006-02-02 Thread Chas Owens
On 2/2/06, Pine Yan <[EMAIL PROTECTED]> wrote: > > Hi, what happens to the memory space with the following code: > > my @full_list = (); > > if (...) { > my @tmp_list; > @tmp_list = split(...); > @full_list = (@full_list, [EMAIL PROTECTED]); > } > > > Here @tmp_list is a local variable and it