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

(MeowChow) Re: case insensitive: Which tree to bark up?

by MeowChow (Vicar)
on May 27, 2002 at 02:59 UTC ( #169466=note: print w/ replies, xml ) Need Help??


in reply to case insensitive: Which tree to bark up?

if (lc($ref->{prodname}) eq lc($value)) ...

unless you actually need to do a partial match, for which case:

if ($ref->{prodname} =~ /\Q$value/i) ...

   MeowChow                                   
               s aamecha.s a..a\u$&owag.print


Comment on (MeowChow) Re: case insensitive: Which tree to bark up?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (17)
As of 2015-07-31 21:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls