Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: Weird grep behaviour

by naikonta (Curate)
on Oct 17, 2007 at 07:36 UTC ( #645388=note: print w/ replies, xml ) Need Help??

in reply to Re: Weird grep behaviour
in thread Weird grep behaviour

It's not about comparison, BLOCK and EXPR are evaluated in boolean context. From OP's sample code, in grep($var1, @arr1), $var1 is always true.

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Comment on Re^2: Weird grep behaviour
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2015-11-29 07:37 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (748 votes), past polls