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

Re: Devel::Declare type syntactic sugar for DBI select bind_col param

by tobyink (Abbot)
on Oct 01, 2012 at 12:37 UTC ( #996642=note: print w/replies, xml ) Need Help??


in reply to Devel::Declare type syntactic sugar for DBI select bind_col param

Just by subclassing DBI::db and using Perl::MethodCallWithBlock I believe you could achieve:

$dbh->SELECT( [qw( name email )], from => 'employees', where => { id => 42 }, ) { printf("%s <%s>\n", $_->name, $_->email); };
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re: Devel::Declare type syntactic sugar for DBI select bind_col param
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996642]
help
Chatterbox?
[Eily]: shmem Indeed :)
[choroba]: How is Bembel different from Krug?
[hippo]: karlgoethebier, Ich habe kein Deutsch.
[Corion]: choroba: A Bembel is a traditional pottery ware, which is only(!) used for serving Cider (well, Apfelwein)
[shmem]: choroba: it's hessisch
[Corion]: Not every Krug is a Bembel!
[karlgoethebier]: there is just the mug: 🍺
[Corion]: A Bembel must look like this
[karlgoethebier]: https://de. wikipedia.org/ wiki/Bembel#/ media/File: Bembel_Zum_blauen_ Bock_1978.jpg
[choroba]: as my friend says, Ich stehe Deutsche ver nicht aber klein ;-)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2017-05-24 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?