httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Zentner <...@2bz.de>
Subject Re: Minor doc fix for Apache::TestRequest
Date Mon, 18 Oct 2004 23:39:49 GMT

Hi,

Am Dienstag 19 Oktober 2004 00:15 schrieb Stas Bekman:
> > Ops, sorry.
> >
> > hard to explain in english, here is a example:
> >
> > perl -we 'sub have_lwp {} my $redir = have_lwp ? [qw(GET HEAD POST)] :
> > 1;'
>
> % perl -we 'sub have_lwp {}; my $redir = have_lwp ? [qw(GET HEAD POST)] :
> 1;' Search pattern not terminated at -e line 1.
>
> Hmm, I wonder where does it find a search pattern there

Perl thinks ? is the start of the ?PATTERN? operator. See perldoc perlop for 
more on it. I never used it. And I'm amazed too.

-- 
Boris

Mime
View raw message