Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

\(LIST) useful with DBI bind_columns

by blssu (Pilgrim)
on Oct 30, 2002 at 12:59 UTC ( #209047=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: qw with anonomous list ref
in thread qw with anonomous list ref

If you're using DBI, then code like this:   $st->bind_columns(undef, \$a, \$b, \$c)
can be written as   $st->bind_columns(undef, \($a, $b, $c))
That may be slightly easier to maintain.

However, two caveats:

  • The \(LIST) form is confusing to many who read it, so make sure you are very consistent.
  • Most code I've seen use bind_columns() is less readable than fetch_hashref(), so if you're thinking of changing your coding style, think about dropping bind_columns() altogether.


Comment on \(LIST) useful with DBI bind_columns
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://209047]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (17)
As of 2014-08-27 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (239 votes), past polls