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

Re: empty 'else' block

by logan (Curate)
on Nov 20, 2004 at 19:57 UTC ( [id://409282]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($foo) {
       print LOG "Exit condition $foo reached.\n";
       exit 0;
    }
    
  2. or download this
    if ($line =~ /\w+sql=\w+/i) {
       $db = "mysql";
       $db_loc = (split(/=/, $line))[1];
    }
    
  3. or download this
    else {
       print DEBUG "Error: Couldn't parse a database out of line ($line)\n
    +";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-24 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found