On Wed, Feb 13, 2002 at 01:14:50PM -0800, John wrote:
> Recently someone pointed out that it's better to use:
>
> while( defined( my $line = ))
>
> than
>
> while( my $line = )
In more recent versions of Perl (5.00503 and above) there is no need to wrap
a defined around this specific loopin
Recently someone pointed out that it's better to use:
while( defined( my $line = ))
than
while( my $line = )
so I have been moving towards this. I noticed that with arrays,
such as:
while( defined( my @data = $sth->fetchrow_array()))
this does not work - @data is defined (as a zero item