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
wantarray docs should mention effect of eval { wantarray } #7211
Comments
From @timbunceThis is a bug report for perl from Tim.Bunce@pobox.com, [Please enter your report here] The wantarray docs don't mention that if wantarray is used inside an $ perl -l -we 'sub foo { eval { print (wantarray ? "list" : "scalar") };1 }; $a=foo; @a=foo;' $ perl -l -we 'sub foo { do { print (wantarray ? "list" : "scalar") };1 }; $a=foo; @a=foo;' |
From @rgsTim Bunce (via RT) wrote:
I committed the following patchlet : Change 22651 by rgs@valis on 2004/04/05 11:50:10 [perl #28171] wantarray docs should mention effect of eval { wantarray } Affected files ... ... //depot/perl/pod/perlfunc.pod#432 edit Differences ... ==== //depot/perl/pod/perlfunc.pod#432 (text) ==== @@ -6625,10 +6625,10 @@ =item wantarray -Returns true if the context of the currently executing subroutine is return unless defined wantarray; # don't bother doing more ==== //depot/perl/t/op/wantarray.t#4 (xtext) ==== @@ -1,6 +1,6 @@ -print "1..9\n"; +my $qcontext = q{ |
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#28171 (status was 'resolved')
Searchable as RT28171$
The text was updated successfully, but these errors were encountered: