%hash = ( key1 => \$foo, key2 => \$bar, key3 => \$baz, ); print "Bar: ${ $hash{key2} }\n"; $bar++; print "Bar: ${ $hash{key3} }\n";