Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Syntactic Confectionery Delight
 
PerlMonks  

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?

loris


"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
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-04-20 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls