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

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

Replies are listed 'Best First'.
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.

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://455429]
[Corion]: Whee! Germanys Grand Central Airport (for Berlin, re-scheduled for the thrid or fourth time, to open now in 2018) has just fired their technical lead
[ambrus]: Corion: Is their budget estimate four times the initial estimate yet? Was the construction late by six months already three months after they started?
[marto]: I'll believe it when I see it. That's been due for many years now :P
[marto]: oddly the last time I was there I saw a zeppelin in flight for the first time

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2017-02-23 11:54 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (345 votes). Check out past polls.