ambrus has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: *a=*[; bug?
by Abigail-II (Bishop) on Jan 09, 2004 at 12:52 UTC | |
|
Re: *a=*[; bug?
by Roger (Parson) on Jan 09, 2004 at 13:26 UTC | |
by Aristotle (Chancellor) on Jan 11, 2004 at 01:29 UTC |