I need to pass it into sub yyy and call it from there.sub xxx { my $x1 = shift; my $x2 = shift; print "$x1, $x2\n"; }
.............. yyy( <xxx("hi", "i am here")> ) .............. sub yyy { <reference to xxx> = shift; .......... call <xxx>; }
In reply to Pass sub reference by vit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |