in reply to Can I rewrite this code?

Yeah,

my ($args) = @_;

No need to make a copy of the hash!

Replies are listed 'Best First'.
Re^2: Can I rewrite this code?
by Anonymous Monk on Nov 22, 2018 at 14:34 UTC

    We don't know what the OP wants to do with the hash. If it is modified in the subroutine, it may need to be copied to prevent spooky action at a distance.

      They are free to ignore me in the unlikely situation that what I said doesn't apply to them.