But how to pass the parameter without introducing the variable $ref (i.e., something like \&test->(1))? And how to pass parameters to anonymous subs? Thanks.my $ref = \&test; $ref->(1); sub test{ print "param: ", shift,"\n"; }
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |