That would have shown you that $methodA does not exist.
Try that with
my $rowHandle = \&methodA; if(!methodB($rowHandle)){ # If you want to PASS the method ... sub methodB(){ my $handle = $_[0]; $handle->(); # CALL the method
I hope life isn't a big joke, because I don't get it.
-SNL
In reply to Re: Method references
by NetWallah
in thread Method references
by AnnShinoy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |