in reply to adding to a hash

Tom Christiansen, the author of the well-worth reading FMTEYEWtKaPiP shows this neat function.

sub hpush(\%@) { my $href = shift; # NB: not % while ( my ($k, $v) = splice(@_, 0, 2) ) { $href->{$k} = $v; } }

Which you could use to this

hpush(%variables, get_page_content("names"));

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller