Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: passing a hash ref in a sub

by pwagyi (Monk)
on Nov 02, 2018 at 04:15 UTC ( [id://1225083] : note . print w/replies, xml ) Need Help??


in reply to passing a hash ref in a sub

Is the question for the sake of understanding reference and sub-routine? If not, the code is basically just merging one hash to another.

my $result_hr = { %$data };