in reply to Re: Re: Re: Re: MySQL / Perl Question
in thread MySQL / Perl Question
my @array = (42); my $count = @array; my ($elem) = @array; print "$count element, which is ($elem)\n";
Update: Oops, it does return a list. The specification even says that it returns the value of the first field in scalar context (a little wantarray action). I'd have missed the boat completely if it didn't go on to warn about calling it in scalar context, though I didn't read that initially.
Hey everyone, look over there => !
|
---|
Replies are listed 'Best First'. | |
---|---|
Re6: MySQL / Perl Question
by blakem (Monsignor) on Nov 11, 2001 at 12:37 UTC |