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.
Hmm, I wasn't even aware of the existance of this operator.
That sounds like a parser bug to me. Care to ping p5p about it? At least this caveat needs to be documented in perl docs I believe (if it isn't already).
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com