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
"Use of uninitialized value" reported on incorrect line number #4061
Comments
From lecates@laurelnetworks.com----------------------------------------------------------------- -Roy
if (1) { unless ($pass == 1) {
Perl Info
|
From [Unknown Contact. See original ticket]
The problem is due to Perl's optimization of: if (TRUE_CONSTANT) { to ONE_STATEMENT_OR_BLOCK; And apparently, in your case, the optimization if (COND) { EXPR; } to COND and EXPR; This turns your code into: #!/usr/bin/perl -w $pass == 1 or exit; If you add a statement to the if-statement or the unless-statement, the -- |
Migrated from rt.perl.org#7084 (status was 'resolved')
Searchable as RT7084$
The text was updated successfully, but these errors were encountered: