Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Exact pattern match?

by adamsj (Hermit)
on Jan 19, 2001 at 02:48 UTC ( [id://52866]=note: print w/replies, xml ) Need Help??


in reply to Exact pattern match?

The other advice is good, but I'll throw in a question:

Do you have to allow for uppercasing, like Yes and No? If so, you've got some additional work to do.

There are many ways to do it--my suggestion is to either lowercase the input with lc() before testing (if you're using eq) or to use the /i switch (if you're using the =~ operator). There are other ways, but I'd suggest these.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 13:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found