in reply to Re: Re: perl -s is evil?
in thread perl -s is evil?
(using both Perl 5.6.0 on Win95 and Perl 5.005_02 on Solaris)
It's just plain wrong. Not only can $1 be assigned to, but afterward it refuses to take the pattern from the regex.% perl -sle '"Hello" =~ /(\w+)/; print $1' -- -1=foo foo
buckaduck
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: perl -s is evil?
by jclovs (Sexton) on Nov 16, 2001 at 21:29 UTC | |
by blakem (Monsignor) on Nov 17, 2001 at 01:43 UTC |