I did a search and found a couple of nodes on array to hash conversions. Perhaps I didn't understand them correctly, but they do not seem to be the answer I am looking for. Here is my question --
# I have
my ($fn, $ln, $age) = qw(Joe McCarty 89);
# I want
my %crazyperson = ( 'fn' => 'Joe', 'ln' => 'McCarty', 'age' => 89);
is there an easy, quick, standard way of doing this?
A related question -- if I have a variable $name, how do I get the string after the $, that is, 'name' in this case? In other words, how do I get the name a of variable instead of the value of the variable?
Many thanks for any help.