develooper Front page | perl.perl6.language | Postings from March 2005

Re: &wrap, &call and goto &sub

Thread Previous | Thread Next
Autrijus Tang
March 16, 2005 10:39
Re: &wrap, &call and goto &sub
Message ID:
On Wed, Mar 16, 2005 at 10:24:16AM -0800, Larry Wall wrote:
> On Wed, Mar 16, 2005 at 08:46:03PM +0800, Autrijus Tang wrote:
> : Is using wrap/call the correct choice here, or is there another way
> : to do it that I missed?
> wrap/call should do what you want there, but if you want to hack in
> &func.goto, that'd be good too.

Done as r804.  It also passes the expected context ("want") of its
original caller to &func, which I assume is the correct behaviour.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About