http://www.perlmonks.org?node_id=522437


in reply to Re: Using placeholders in selectall_arrayref
in thread Using placeholders in selectall_arrayref

So to speak...

my $employees_loh = $dbh->selectall_arrayref($query2, {Slice => {}}, $employer);

(This was not missing in Fang's reply, but this might be clearer to both DBI and perlreferences newbees.
It would sureley have confused me when I was one.)

Cheers, Sören

  • Comment on Re^2: Using placeholders in selectall_arrayref

Replies are listed 'Best First'.
Re^3: Using placeholders in selectall_arrayref
by bradcathey (Prior) on Jan 11, 2006 at 13:48 UTC

    Thanks Happy-the-monk! I didn't understand that the {Slice => {}} was the \%att as shown in the doc. Nice to see an example. Perfect.


    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot
Re^3: Using placeholders in selectall_arrayref
by vagabonding electron (Curate) on Jun 03, 2012 at 13:18 UTC
    Awesome example.
    Faced the same problem as newbee and found enlightenment here.
    Many thanks.