in reply to Re^4: how to goto &sysread ?
in thread how to goto &sysread ?
The goto-&NAME form is quite different from the other forms of goto. In fact, it isn't a goto in the normal sense at all, and doesn't have the stigma associated with other gotos. Instead, it exits the current subroutine (losing any changes set by local()) and immediately calls in its place the named subroutine using the current value of @_.
It appears that this is sort of like an exec() at the subroutine level. That it can "fool" caller() is significant.
In the process of thinking about the OP's question, I have learned something. But I'm still curious as to what the OP is trying to do? The above notwithstanding, what is the application?
|
|---|