in reply to Re: Can I rewrite this code?
in thread Can I rewrite this code?

and what does + in front of shift do?

Replies are listed 'Best First'.
Re^3: Can I rewrite this code?
by Corion (Patriarch) on Nov 23, 2018 at 17:46 UTC

    The + in front of shift tells Perl that you want the function shift and not a string "shift" as the hash key.