Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: If-else problem

by dree (Monsignor)
on Jun 15, 2002 at 09:22 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found