Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Continuations in Perl - Returning to an arbitrary level up the call stack

by unlinker (Monk)
on May 18, 2013 at 20:50 UTC ( #1034150=note: print w/ replies, xml ) Need Help??


in reply to Re: Continuations in Perl - Returning to an arbitrary level up the call stack (goto)
in thread Continuations in Perl - Returning to an arbitrary level up the call stack

Unfortunately, the functions up the call stack are modules that I dont control. These modules call my function and I dont want to return to the calling module but one level higher up the stack.

Thanks for the suggestion though. I am currently looking at Continuation::Escape for a possible solution


Comment on Re^2: Continuations in Perl - Returning to an arbitrary level up the call stack
Re^3: Continuations in Perl - Returning to an arbitrary level up the call stack
by LanX (Canon) on May 18, 2013 at 20:56 UTC
    > I dont want to return to the calling module but one level higher up the stack.

    Thats where you have to place the target label.

    Anyway I doubt that your approach is reasonable, sorry! Maybe a XY problem?

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1034150]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-05 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls