Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: GOTO statement. A better way?

by AReed (Pilgrim)
on Sep 19, 2005 at 22:25 UTC ( [id://493315]=note: print w/replies, xml ) Need Help??


in reply to GOTO statement. A better way?

As a matter of style, unnecessary negatives in conditional statements make code harder to read. If "#do nothing" really does mean that there's nothing to do, then this:
if ($line !~ m/ALTER\sPROCEDURE\s/){ #do nothing } else { goto here; }
would be more easily understood if written as:
if ($line =~ m/ALTER\sPROCEDURE\s/) { last; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-16 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found