Carl Jolley wrote:
> On Fri, 5 Jan 2001, Martin Moss wrote:
>
> > All,
> >
> > I'm trying to write a callback process in a script I'm writing.
> > Basically I have a reference to a subroutine, and I want to
> execute that
> > subroutine and pass it some parameters,
>
> I'm not sure exactly what your difficulty may be but if it is
> the syntax, I believe something like the following will work:
>
> @results=&$myfuncref($param1,$parma2,....);
Alternate syntax:
@results = $myfuncref->($param1, $param2, ...);
I prefer the latter but it's a matter of style.
Cheers,
Philip
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users