vit has asked for the wisdom of the Perl Monks concerning the following question:
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>; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pass sub reference
by Anonymous Monk on Oct 28, 2010 at 17:04 UTC | |
by Anonymous Monk on Oct 28, 2010 at 17:16 UTC | |
by AnomalousMonk (Archbishop) on Oct 29, 2010 at 00:59 UTC |