Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: what does goto ""; mean?

by melora (Scribe)
on Dec 11, 2003 at 19:59 UTC ( #314141=note: print w/replies, xml ) Need Help??

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 "";.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://314141]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2023-06-01 09:40 GMT
Find Nodes?
    Voting Booth?

    No recent polls found