Re: Invalid Operating System

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

From: H.Merijn Brand
Subject: Re: Invalid Operating System
Date: 10:26 on 17 Dec 2006
On Sun, 17 Dec 2006 02:44:29 +0100, "A. Pagaltzis" <pagaltzis@xxx.xx> wrote:

> * Michael Leuchtenburg <michael@xxxxxxxxx.xxx> [2006-12-16 19:05]:
> > What is this, loves-perl? Release your anger, your hate!
> > :
> > I could go on, getting in to the sorts of hate that Perl
> > enables - s;foo;bar; anyone?
> 
> That's annoying, but do you find the following pretty?
> 
>     s/^file:\/\/\/?//
> 
> I guess the set of delimiters could have excluded things like
> semicolons, though; granted.

No. Very handy.

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

-- 
H.Merijn Brand         Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.9.x   on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.0 & 10.1, AIX 4.3 & 5.2, and Cygwin. http://qa.perl.org
http://mirrors.develooper.com/hpux/            http://www.test-smoke.org
                        http://www.goldmark.org/jeff/stupid-disclaimers/
There's stuff above here

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