Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-11-24 00:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (343 votes). Check out past polls.

    Notices?