sybperl-l Archive
Up Prev Next
From: Louis N Proyect <lnp3 at columbia dot edu>
Subject: Re: testing values in returned rows
Date: Feb 9 2000 11:08PM
On Wed, 9 Feb 2000, Michael Peppler wrote:
> You are using @$row (an array) in a scalar context. This evaluates to
> the number of elements in the array, not the contents of each element.
>
> Your test should be written:
>
> if(join(' ', @$row) =~ /Feb/) {
> ...
> }
Thanks. I was afraid of this. I was leery of object orientation when I
first heard about it 7 or 8 years ago. Object Perl seems to be just as
furblungid.
|