Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://967948]
help
Chatterbox?
talexb strolls in on this hot, hot Monday morning.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2018-06-18 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (109 votes). Check out past polls.

    Notices?