in reply to Re^2: goto &sub and local question
in thread goto &sub and local question
"Unfortunately, in my particular application I think I need the 'goto' form ..."
Why? What about your usage requires you to call a subroutine with goto? After all, "the author of Perl has never felt the need to use this form of goto."
Also, you mention that your solution is to affect a few closely coupled subroutines with global variables. I can't help but associate the word closely with the word tightly -- which is exactly how subroutines are not supposed to be coupled. Loose coupling and tight cohesion is the goal. I can't help but think that maintenance problems are all that you are adding and that there is a better solution for you, but it is difficult to know for sure without seeing more of your code.
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: goto &sub and local question
by Porculus (Hermit) on Nov 24, 2008 at 23:54 UTC | |
|
Re^4: goto &sub and local question
by rovf (Priest) on Nov 25, 2008 at 09:50 UTC | |
by dragonchild (Archbishop) on Dec 01, 2008 at 17:34 UTC | |
by rovf (Priest) on Dec 02, 2008 at 09:20 UTC |