develooper Front page | perl.perl5.porters | Postings from January 2019

[perl #130367] perl thinks a hash is a scalar in push/keys errormessages

From:
Tony Cook via RT
Date:
January 22, 2019 00:25
Subject:
[perl #130367] perl thinks a hash is a scalar in push/keys errormessages
Message ID:
rt-4.0.24-5748-1548116721-1431.130367-15-0@perl.org
On Sun, 08 Apr 2018 00:38:54 -0700, xsawyerx@gmail.com wrote:
> On Sun, 18 Dec 2016 16:02:50 -0800, tonyc wrote:
> > On Sat, 17 Dec 2016 08:01:20 -0800, xsawyerx@gmail.com wrote:
> > > When attempting to run "push" on a hash, we get the same error as
> > > when
> > > on a scalar, except it still includes the word "scalar", even though
> > > it's a hash. Haven't checked pop/shift/unshift, but I imagine they're
> > > the same.
> > 
> > Something like the attached?
> 
> 
> I only now saw I haven't responded to this. So sorry.
> 
> Yes, this is perfect.

I missed your reply too.

Applied as 5d4636a3aa0bc51a92e8f239caafb9c4539ab28f with some extra tests.

Tony

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=130367



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About