-
Notifications
You must be signed in to change notification settings - Fork 577
say Data::Dumper::Dump(...) gives strange internal error #16541
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
Comments
From @jimavThis is a bug report for perl from jim.avera@gmail.com, use v5.25; print Data::Dumper::Dump([$foo], [qw(foo)]); # works say Data::Dumper::Dump([$foo], [qw(foo)]); # does NOT work The "say" line dies with The code there is as follows: 226 sub Dump { Flags: Site configuration information for perl 5.26.1: Configured by Ubuntu at Sat Mar 10 18:40:42 UTC 2018. Summary of my perl5 (revision 5 version 26 subversion 1) configuration: Locally applied patches: @INC for perl 5.26.1: Environment for perl 5.26.1: |
From @jimavOn Sun, 29 Apr 2018 22:17:37 -0700, jim.avera@gmail.com wrote: because in the documented use case Probably the code should test for ref($_[0]) eq "Data::Dumper" or something similar which deals with derived classes |
From @jimavOn Sun, 29 Apr 2018 22:30:41 -0700, jim.avera@gmail.com wrote:
But... why ddoesn't this cause a problem when using "print"? What does "say" do which provokes the error? |
From @demerphqDump is not a sub. It's a method. Yves On Mon, 30 Apr 2018, 07:18 Jim Avera (via RT), <perlbug-followup@perl.org>
|
The RT System itself - Status changed from 'new' to 'open' |
From [email protected]On Sun, 29 Apr 2018, Jim Avera (via RT) wrote:
This is strange. None of these lines work for me with 5.26.0, like I Data::Dumper->Dump([$foo], [qw(foo)]); And this works with both `say` and `print`. This is how it's If this works for you: print Data::Dumper::Dump([$foo], [qw(foo)]); # works then it would be interesting to debug that. |
From @jimavAch. YABBR (Yet Another Bogus...) You are right of course. I really shouldn't work so late. Please close. On 4/30/18 2:43 AM, Tina Mueller via RT wrote:
|
@jkeenan - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#133163 (status was 'rejected')
Searchable as RT133163$
The text was updated successfully, but these errors were encountered: