Re: Invalid Operating System

[prev] [thread] [next] [lurker] [Date index for 2006/12/17]

From: Earle Martin
Subject: Re: Invalid Operating System
Date: 12:42 on 17 Dec 2006
On 17/12/06, H.Merijn Brand <h.m.brand@xxxxxx.xx> wrote:
> my $sth = $dbh->prepare (qq;
>     select foo, bar
>     from   baz
>     where  duh = ?;
>     );
>
> Now you can cut-n-paste the statement and run in SQL :)
> And it reads nice too

That's a little hacky for my tastes.

my $sth = $dbh->prepare(<<'END_SQL');
     select foo, bar
     from   baz
     where  duh = ?;
END_SQL


-- 
Earle Martin
            http://downlode.org/
http://purl.org/net/earlemartin/
There's stuff above here

Generated at 22:02 on 27 Dec 2006 by mariachi 0.52