my $name = 'test'; update_$name(); $name = 'hello'; update_$name(); sub update_test { print 'test'; } sub update_hello { print 'hello'; } [download]
In reply to Dynamically Calling a Subroutine by Anonymous Monk