in reply to Re: newer Perl version rejects this
in thread newer Perl version rejects this

Then, perldoc's pelsub is needing for an update:

And the split gets called in scalar context so it starts scribbling on your @_ parameter list. Ouch!

Replies are listed 'Best First'.
Re^3: newer Perl version rejects this
by davido (Cardinal) on Sep 18, 2016 at 05:17 UTC

    Good catch. I'm not sure if anyone else has already reported it, but your post motivated me to submit a perlbug report: https://rt.perl.org/Public/Bug/Display.html?id=129297.

    Didn't notice till afterward that I had perlbrew set to a perl-5.22 installation, but the report should be adequate either way.


    Dave