Re: Accessing coderefs
Peter Rabbitson <[email protected]> Mon, 20 Mar 2006 09:09:37 -0500
| Newsgroups | gmane.comp.lang.perl.modules.petal |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 20, 2006 at 11:21:49AM +0000, Bruno Postle wrote:
> Peter Rabbitson wrote:
> >
> >Is it a bug or a feature that if I have:
> >
> >$petal->process ( { coderef => \&useful_sub } );
> >
> >I can not do
> >
> >...petal:content="coderef --var1 --var2"...
>
> This would be ok as an object, what about it doesn't work?
>
> --
> Bruno
Petal gives me no problems if I am to use object/method and supply
parameters. In my case it is very problematic to supply an object to
process(), so I was wondering if there is a way to call a coderef.
Peter