Re: while(@data) works but why

2011-08-12 Thread Tony Esposito
rl.org Sent: Fri, 12 August, 2011 14:13:26 Subject: Re: while(@data) works but why On 8/12/11 Fri Aug 12, 2011 12:02 PM, "Tony Esposito" scribbled: > . > . > . > while(@dat = $sth->fetchrow) { > print "@dat\n"; > . > . > . > > This cod

Re: while(@data) works but why

2011-08-12 Thread Tony Esposito
got it ... thank you. cheers! From: Brandon McCaig To: Tony Esposito Cc: beginners@perl.org Sent: Fri, 12 August, 2011 14:08:52 Subject: Re: while(@data) works but why On Fri, Aug 12, 2011 at 3:02 PM, Tony Esposito wrote: > . > . > . > while

Re: while(@data) works but why

2011-08-12 Thread Jim Gibson
On 8/12/11 Fri Aug 12, 2011 12:02 PM, "Tony Esposito" scribbled: > . > . > . > while(@dat = $sth->fetchrow) { > print "@dat\n"; > . > . > . > > This code works yet there is no 'my @dat' defined anywhere in the code. > Using Perl 5.8.x - 5.14.x > > Q: Why does the variable @dat not nee

Re: while(@data) works but why

2011-08-12 Thread Brandon McCaig
On Fri, Aug 12, 2011 at 3:02 PM, Tony Esposito wrote: > . > . > . > while(@dat = $sth->fetchrow) { >        print "@dat\n"; > . > . > . > > This code works yet there is no 'my @dat' defined anywhere in the code. > Using Perl 5.8.x - 5.14.x > > Q: Why does the variable @dat not need a 'my' in front

while(@data) works but why

2011-08-12 Thread Tony Esposito
. . . while(@dat = $sth->fetchrow) { print "@dat\n"; . . . This code works yet there is no 'my @dat' defined anywhere in the code. Using Perl 5.8.x - 5.14.x Q: Why does the variable @dat not need a 'my' in front? Cheers!