On Apr 28, 10:38 pm, jida...@jidanni.org wrote:
> Perl warns here,
> $ echo o|perl -plwe 's/./@@@@$&/'
> Possible unintended interpolation of @$ in string at -e line 1.
> @@@&
> Perhaps it should also warn here:
> $ echo o|perl -plwe 's/(.)/@@@@$1/'
> @@@
>
> If so please submit a bug for me, because my address is blocked from
> perl.org.
I don't know how perl could be expected to know what was intended.
@$ seems to be cromulent.
perl -we '$$[0]="That is"; $$[1]="messed up"; print join " ",@$'
That is messed up
|