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
exists(): error message on wrong argument type is incorrect (5.8.7 cygwin) #8414
Comments
From jeremyhetzler@gmail.comCreated by jeremyhetzler@gmail.comMessage-Id: <5.8.7_3884_1145571853@frederick> This is a bug report for perl from jeremyhetzler@gmail.com, ----------------------------------------------------------------- $ perl -e'exists $foo' Likewise, /bin/splain reports: $ perl -e'exists $foo' 2>&1 | splain $foo{$bar} However, the argument to exists can legitimately also be a subroutine $ perl -e'exists &foo' The docs correctly state that the argument can be any of a hash element, The error message should be: The splain output should be: $foo{$bar} Perl Info
|
From @rgsJeremy Hetzler (via RT) wrote:
So, one should probably merge both error messages : $ perl -e 'exists &foo()' |
The RT System itself - Status changed from 'new' to 'open' |
From jeremyhetzler@gmail.comRafael Garcia-Suarez via RT wrote:
I hadn't noticed that. Yes, they should both give the same error exists argument is not a HASH element, ARRAY element, or subroutine I think this would work for both the $foo and &foo() cases. Jeremy |
From p5p@spam.wizbit.beOn Thu Apr 20 15:31:19 2006, jeremyhetzler@gmail.com wrote:
[...]
[...] Patch that changes the error message to: |
From @rgs2008/5/17 Bram via RT <perlbug-followup@perl.org>:
Thanks, applied as #33849. |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#38955 (status was 'resolved')
Searchable as RT38955$
The text was updated successfully, but these errors were encountered: