in reply to Re: passing an array without a name to pop()
in thread passing an array without a name to pop()

If you check the prototype, pop is ";+"

No, not anymore, this was an experiment added in Perl 5.14 and removed in 5.24; see "Array and hash container functions accept references" (aka "autoderef") in perlexperiment. Its prototype has gone back to ;\@, like it was in 5.12 and below. The removal of the feature is why the "Experimental pop on scalar is now forbidden" error happens in the first place.

Replies are listed 'Best First'.
Re^3: passing an array without a name to pop()
by Fletch (Bishop) on Dec 03, 2019 at 21:26 UTC

    Derp! That's what I get for trying it on my older desktop install instead of a close-to-current version.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.