Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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)

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 cooling their heels in the Monastery: (10)
As of 2016-10-26 12:37 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (340 votes). Check out past polls.