Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 chilling in the Monastery: (14)
As of 2015-10-13 18:39 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (312 votes), past polls