- or download this
sub foo { "foo" }
$fooref = \*foo;
...
print *foo{CODE};
print *bar{CODE};
- or download this
sub foo { "foo" }
$fooref = \*foo;
...
print *foo{CODE};
print *bar{CODE};
- or download this
$bar = 1;
$barref = \*bar;
...
print *bar{SCALAR};
*$barref = sub { "bar" };
print *bar{SCALAR};