Re: Newbie question about variables, arrays and where they all go

2009-01-19 Thread dolphin_sonar
On Jan 18, 7:54 pm, telemac...@arpinum.org (Telemachus) wrote: On Sun Jan 18 2009 @ 10:59, dolphin_sonar wrote:    1 # When calling 'running_sum(5, 6);' the variable 'state @numbers' receives those two    2 # parameters, (5 and 6), right? Then, the @numbers array also copies/stores (5

Re: Newbie question about variables, arrays and where they all go

2009-01-19 Thread Telemachus
On Mon Jan 19 2009 @ 4:21, dolphin_sonar wrote: Again, you answered my question. You should be teaching Perl as your responses are very clear and that's not easy for people to do...give clear, concise responses. Actually, I had a big goof in my response. The program and the print statement

Newbie question about variables, arrays and where they all go

2009-01-18 Thread dolphin_sonar
1 # When calling 'running_sum(5, 6);' the variable 'state @numbers' receives those two 2 # parameters, (5 and 6), right? Then, the @numbers array also copies/stores (5 and 6) 3 # into the special '( @_ )' variable as well, right? Also, line 13 pushes '$number' into 4 # the '@numbers'

Re: Newbie question about variables, arrays and where they all go

2009-01-18 Thread Telemachus
On Sun Jan 18 2009 @ 10:59, dolphin_sonar wrote: 1 # When calling 'running_sum(5, 6);' the variable 'state @numbers' receives those two 2 # parameters, (5 and 6), right? Then, the @numbers array also copies/stores (5 and 6) 3 # into the special '( @_ )' variable as well, right? Also,

Re: Newbie question about variables, arrays and where they all go

2009-01-18 Thread Telemachus
From: Telemachus telemac...@arpinum.org Date: Sun, 18 Jan 2009 20:17:27 -0500 To: beginners@perl.org Subject: Re: Newbie question about variables, arrays and where they all go On Sun Jan 18 2009 @ 7:54, Telemachus wrote: The arguments to a subroutine go into the @_ array. The @numbers array