in reply to Unable to INSERT dereferenced values into db
First: Actually, you ARE returning an array. Lists are only transient things that exist in expressions. If you can take a reference to it, it's an array.
With that out of the way: That's not how you access array elements, and I think that'll give you a warning about single-element array slicing. There are two ways you can do your array:
or slightly easier$sth->execute( $ref->[0], $ref->[1], $ref->[2], $ref->[3]) ;
Try those.$sth->execute( @$ref );
--Stevie-O
$"=$,,$_=q>|\p4<6 8p<M/_|<('=> .q>.<4-KI<l|2$<6%s!<qn#F<>;$, .=pack'N*',"@{[unpack'C*',$_] }"for split/</;$_=$,,y[A-Z a-z] {}cd;print lc
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Unable to INSERT dereferenced values into db
by Mr. Muskrat (Canon) on May 25, 2004 at 11:59 UTC |
In Section
Seekers of Perl Wisdom