in reply to Re: Advice on goto usage?
in thread Advice on goto usage?

Nevtlathiel,
Using goto is generally considered to be bad style...

I agree with what you have said but feel it is important to share more of the story. There are 2* forms of goto in Perl and 1 isn't so bad at all. From TFM:

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.

Read Pure Perl tail call optimization if you want to see how this is useful.

Cheers - L~R

* Really there are 3, but 2 equate to the same thing.