in reply to Treating sub output as a hash
Is there a way to avoid defining %t, and make the code more compact?
a() returns a list. The inner {} make a hashref, and the outer %{} dereferences this hashref.print keys %{{a}};
|
---|
In Section
Seekers of Perl Wisdom