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"));
|
|---|