Mr. Shawn H. Corey wrote:
On Tue, 2008-04-08 at 13:12 -0400, Mr. Shawn H. Corey wrote:
If, on the other hand, FOO::BAR has:

our $sub1 = \&foo;

sub foo {
  ...
}

To access it:

  $var1 = &( $FOO::BAR::sub1 )();

Oops, that should be:

  $var1 = &{ $FOO::BAR::sub1 }();

ITYM:

$var1 = $FOO::BAR::sub1->();



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to