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
bug in 'my $x = 0 if $y->{Z}' #1416
Comments
From rmiller@rmiller1.idx.comCreated by Rich_Miller@idx.comThe statement Splitting the statement into two parts This occurs deep within the evaluation of a large and reasonably complex Perl Info
|
From [Unknown Contact. See original ticket]
This is actually a quasi-known "feature". Contrast: use strict; With: use strict; But the former admits no initialization, because you can't say my $value = 0 unless defined $value; As it's not yet in scope. Also, the second form allows this kind of thing: BEGIN { I assume one could/should patch perlsyn/perlsub/perlfunc if one --tom |
From [Unknown Contact. See original ticket]Thanks much for the explanation. I used the construct Perl's a wonderful tool! |
Migrated from rt.perl.org#2556 (status was 'resolved')
Searchable as RT2556$
The text was updated successfully, but these errors were encountered: