Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
go ahead... be a heretic
 
PerlMonks  

Re: brackets help

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to brackets help


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

Replies are listed 'Best First'.
Re^2: brackets help
by tphyahoo (Vicar) on May 10, 2005 at 04: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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://455429]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.