# contrived example: there usually isn't a good reason # to have references to scalars. my $a = 10; my $b = \$a; print "$$b "; change($b); print "$$b"; sub change { my $param = shift; ${$param}++; }