At Re: How's your Perl?, I mentioned that *a=*[;$a=5;print $a,$/; prints 0.
I discovered that $a="[";$$a=5;print$$a,$/; does the same thing. I think that both should die like $a=5;$[=$a;, that is with That use of $[ is unsupported at -e line 1.
Is this a bug in Perl? What do you think?
In reply to *a=*[; bug? by ambrus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |