develooper Front page | perl.perl5.porters | Postings from April 2018

[perl #133109] push on scalar forbidden: why?

Thread Previous | Thread Next
Dan Book via RT
April 13, 2018 23:46
[perl #133109] push on scalar forbidden: why?
Message ID:
On Fri, 13 Apr 2018 16:43:47 -0700, wrote:
> This was an experimental feature added in 5.14:
> functions-accept-references and then removed in 5.24:
> removed . One of the biggest problems with it is that there's no
> correct way to handle an object with both hash and array overloads
> defined.

Also, adding an @ to dereference it is a very simple workaround, and will autovivify an undefined scalar used in this manner.

via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About