Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: what does goto ""; mean?

by melora (Scribe)
on Dec 11, 2003 at 19:59 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found