[Petal] Accessing coderefs

Peter Rabbitson rabbit at rabbit.us
Mon Mar 20 14:09:37 GMT 2006


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



More information about the Petal mailing list