Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2018-01-17 01:25 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (194 votes). Check out past polls.