Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 about the Monastery: (11)
As of 2014-09-18 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (113 votes), past polls