sub foo { "foo" } $fooref = \*foo; &$fooref(); #### Not a CODE reference at testing.pl line 3. #### $bar = 1; $barref = \*bar; *$barref = sub { "bar" }; &$barref(); #### Not a CODE reference at testing.pl line 4.
## Not a CODE reference at testing.pl line 3. ##
## $bar = 1; $barref = \*bar; *$barref = sub { "bar" }; &$barref(); ##
## Not a CODE reference at testing.pl line 4.