in reply to Re: Experimental push on scalar now forbidden
in thread Experimental push on scalar now forbidden

Sorry I came late, but if you care more about compatibility than speed you could override push et al with backwards compatible functions.

See subs , perlsub#Overriding-Built-in-Functions and CORE .

BTW: since I have no access to 5.24 it'll be nice to know what prototype 'CORE::push' returns.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

PS:

>  looks like a completely foreign language - shades of using APL in my past!!

calling the new syntax APL-like is an euphemism.

I wonder sometimes if P5P has a real long term vision.

Replies are listed 'Best First'.
Re^3: Experimental push on scalar now forbidden (override)
by kcott (Archbishop) on May 23, 2017 at 07:39 UTC
    "BTW: since I have no access to 5.24 it'll be nice to know what prototype 'CORE::push' returns."
    $ perl -v | head -2 | tail -1 This is perl 5, version 24, subversion 0 (v5.24.0) built for darwin-th +read-multi-2level $ perl -le 'print prototype "CORE::push"' \@@

    — Ken