On 2001-03-09 22:56:11, [EMAIL PROTECTED] wrote:
>
> OK Randal, how does this work? I put it in code and see it WORKS, but
> my brains hurts trying to understand it.
>
> > $rc = $sth->bind_columns(\@column{qw(one two three four five)});
@x{qw(a b) is ($x{a}, $x{b}). \($a, $b) is (\$a, \$b).
Thus, \@x{qw(a b)} is (\$x{a}, \$x{b}), which is what bind_columns
wants (the hash elements are autovivified when you take references to
them).
- ams
- Reusable code for binding columns. Steve Howard
- Re: Reusable code for binding columns. Stephen Clouse
- Re: Reusable code for binding columns. Randal L. Schwartz
- Re: Reusable code for binding columns. David Wheeler
- Re: Reusable code for binding columns. Thomas A . Lowery
- Re: Reusable code for binding columns. Abhijit Menon-Sen
- Re: Reusable code for binding columns. Matthew O. Persico
- RE: Reusable code for binding columns. Sterin, Ilya
- Re: Reusable code for binding col... James Maes
- RE: Reusable code for binding... Sterin, Ilya
- RE: Reusable code for binding... Steve Howard
- Re: Reusable code for bin... Abhijit Menon-Sen
- Re: Reusable code for bin... Randal L. Schwartz
- Re: Reusable code for binding col... Abhijit Menon-Sen
- Re: Reusable code for binding col... Matthew O. Persico
- Re: Reusable code for binding columns. Michael A. Chase
