PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

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.