New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interpolation of $_ is busted #1012
Comments
From schuller@lunatech.comI've found a bug in interpolation of $_ when followed by the characters [] . $ perl5.00503 -e '$_="a"; print "${_}[]\n"' Leaving off the curlies gives $ perl5.00562 -e '$_="a"; print "$_[]\n"' So I don't know how to follow $_ with literal square brackets other than Perl Info
|
From @tamiasOn Fri, Dec 31, 1999 at 04:23:28PM +0100, Bart Schuller wrote:
This is reasonable behavior.
This is not reasonable behavior; I can't explain it. What happened to the
This is reasonable too. $_[] refers to the array @_, but it's a syntax
Escape the bracket with a backslash. In a double-quoted string, a print "$_\[]\n"; Ronald |
From @TimToadyBart Schuller writes: This appears to be because you've got USE_THREADS defined. That tends Note that we'd like to move to $_ being lexically scoped over the Larry |
From [Unknown Contact. See original ticket]Larry Wall <larry@wall.org> wrote
I can confirm that it doesn't fail on 5.005_62 without threads. It seems like this is all pointing to a very long standing bug (or is it % perl5.002 -we '$a="b"; my %perl5.002 -we '$a="b"; my Mike Guy |
Migrated from rt.perl.org#1962 (status was 'resolved')
Searchable as RT1962$
The text was updated successfully, but these errors were encountered: