Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: brackets help

by rupesh (Hermit)
on May 10, 2005 at 04:09 UTC ( #455429=note: print w/ replies, xml ) Need Help??


in reply to brackets help


$_='Hello ( World )'; print "$1_$2" if /(\w+) \( (\w+) \)/; ^D Hello_World
Cheers,
Rupesh.


Comment on Re: brackets help
Download Code
Re^2: brackets help
by tphyahoo (Vicar) on May 10, 2005 at 08:38 UTC
    Interesting. What is the ^d for?

    The ^d line was a syntax error on my system, winxp activestate.

      What is the ^d for?
      It's shorthand for "Control-d", or unix End-of-file character. rupesh was using perl as an interactive processor. (Type "perl" at a command prompt, enter the code, then press "Control-d"). I think windows might use CTRL-z or somesuch, but I don't actually.... care, tbh.

      davis
      Kids, you tried your hardest, and you failed miserably. The lesson is: Never try.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-08-23 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls