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