http://qs321.pair.com?node_id=120181

c has asked for the wisdom of the Perl Monks concerning the following question:

Currently, i am using the following to pass a group of directives into a subroutine for use:

(my $host, my $source, my $destination) = @_;

however with a recent post i've made, i've come to some realization that it will be significantly much easier to put these values with a hash. can i do this directly replacing the above line, or do i need additional code that would relate something like.

my %args = ( h => $host, s => $source, d => $destination,);

i'd hate to create three variables that wouldnt be used through the sub other than to stick the values into a hash.

humbly -c