http://www.perlmonks.org?node_id=314141


in reply to what does goto ""; mean?

I hate to seem obtuse, but why would you want to do a computed goto to an empty string? (NOTE: this is NOT sarcasm, I'm just curious.)

Replies are listed 'Best First'.
Re: Re: what does goto ""; mean?
by zeno (Friar) on Dec 11, 2003 at 21:33 UTC
      Oh, okay. I thought it was Something Found on the way to The Other Thing. melora
Re: Re: what does goto ""; mean?
by ambrus (Abbot) on Dec 12, 2003 at 07:59 UTC

    Well, in GNU sed, for example, you can jump to an empty label:

    For example, echo bungee | sed ':;s/\(.\)\(.*\)e/\2\1/;t;' prints ngub.

    UPDATE: I didn't give an answer to your question, so here it is. I saw that you can create an empty label (you can't), and wondered how to jump there. A simple goto; is not enough. So I tried goto "";.