Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Looking for less code

by mzedeler (Pilgrim)
on Aug 11, 2009 at 10:38 UTC ( [id://787580]=note: print w/replies, xml ) Need Help??


in reply to Looking for less code

The comment by JavaFan provides a very short version, but that aside, having a variable named $flag is a really bad idea. Usually you use the name to describe the purpose of the variable, not the type. Otherwise you'll end up with names like $string, $string2, $number, $numbers and so forth. Knowing what you want $flag to do could in this case help simplifying your code even further.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-26 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found