Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: If-else problem

by dree (Monsignor)
on Jun 15, 2002 at 09:22 UTC ( #174821=note: print w/ replies, xml ) Need Help??


in reply to If-else problem

Writing this is enough:

if ($attributes[0] =~m/^DI/i){
See perldoc perlref:
i Do case-insensitive pattern matching. ^ Match the beginning of the line


Comment on Re: If-else problem
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-10-24 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (137 votes), past polls