Being a my variable, the reference is not visible outside the class.my $sref = sub { print "This has no name\n" }; &$sref(); # Call the subroutine
In reply to Re: Hiding methods of class
by cdarke
in thread Hiding methods of class
by isha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |