Perl Newbie question about upgrade from Perl 5.8.8 to 5.10

2009-01-15 Thread dolphin_sonar
Hi, I bought the O'Reilly 5th edition Learning Perl the other day and it's great. I am new to programming and Perl as well. I do know my way around Linux but I am having problems upgrading from the version that was on my OS (Cent OS 5.2) to 5.10. I downloaded Perl 5.10 from http://www.cpan.org/aut

Re: Perl Newbie question about upgrade from Perl 5.8.8 to 5.10

2009-01-16 Thread dolphin_sonar
On Jan 15, 7:39 am, telemac...@arpinum.org (Telemachus) wrote: > On Wed Jan 14 2009 @  8:17, dolphin_sonar wrote: > > > > > Hi, > > > I bought the O'Reilly 5th edition Learning Perl the other day and it's > > great. I am new to programming and Perl as we

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

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), rig