Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^2: Matching @ in string

by loris (Hermit)
on Nov 23, 2007 at 07:49 UTC ( #652514=note: print w/ replies, xml ) Need Help??

in reply to Re: Matching @ in string
in thread Matching @ in string

I am sure this is very good advice, but in the present case

perl -elw 'if ("h@t" =~ /(\@)/ ) { print $1 }'

doesn't produce any warning (I'm using 5.8.8 under Cygwin and Debian).

How did you get the message about the unintended interpolation?


"It took Loris ten minutes to eat a satsuma . . . twenty minutes to get from one end of his branch to the other . . . and an hour to scratch his bottom. But Slow Loris didn't care. He had a secret . . ." (from "Slow Loris" by Alexis Deacon)

Comment on Re^2: Matching @ in string
Select or Download Code
Replies are listed 'Best First'.
Re^3: Matching @ in string
by tinita (Parson) on Nov 23, 2007 at 08:08 UTC
    perl -elw ...
    i said -wle not -elw =)
    -elw doesn't produce any output.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2016-02-14 09:28 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (469 votes), past polls