my ($rvars) = shift; my %vars = %$rvars; #### my ($rvars) = shift; ... my $path1 = $vars->{"to_images"}; my $path2 = $vars->{"to_magick"}; ...