(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
In reply to Re: Re: Re: perl -s is evil?
by buckaduck
in thread perl -s is evil?
by malloc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |