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
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
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'
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,
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