sub test { print "nothing\n"; } my $var = 'test'; &$var; # will call the sub, if you are not using strict.