Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: totally lost

by JavaFan (Canon)
on Apr 29, 2012 at 16:22 UTC ( #967948=note: print w/ replies, xml ) Need Help??


in reply to totally lost

Precedence. You're matching badinput against the negation of $input. Use:

if ($input !~ /badinput/) { ... }
instead.

Or

if (!($input =~ /badinput/)) { ... }
but that's more typing, and less idiomatic.


Comment on Re: totally lost
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-12-27 04:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls