Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2015-07-05 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls