in reply to Re^2: Can't Reference a Sub by Variable when using Strict
in thread Can't Reference a Sub by Variable when using Strict
use strict; sub foo { print "It's all good."; } my $subref = \&{ "foo" }; &$subref; __output__ It's all good.
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can't Reference a Sub by Variable when using Strict
by tachyon (Chancellor) on Oct 04, 2004 at 12:32 UTC |