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
perlsub should be more explicit when an implicit return encounters an if(){} statement #13516
Comments
From daoswald@gmail.comCreated by daoswald@gmail.comperlsub says this about implicit returns: If no return is found and if the last statement is an Now consider the following code: $x = 1; The output will be 0, presumably because the last statement How about this: $x = 0; The output will be 0, presumably because the last expression Although this behavior is possibly a little confusing to If no L<return> is found and if the last statement is an Perl Info
|
From @tonycozOn Wed Jan 08 09:16:36 2014, daoswald wrote:
...
For reference, the current text was set in It was discussed in the following threads: http://www.nntp.perl.org/group/perl.perl5.porters/2005/10/msg105810.html http://www.nntp.perl.org/group/perl.perl5.porters/2005/10/msg105889.html I think the current text is fine. Tony |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#120954 (status was 'open')
Searchable as RT120954$
The text was updated successfully, but these errors were encountered: