Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Another reason for perl beginners to read perldocs

by dcmertens (Beadle)
on Jul 06, 2011 at 16:44 UTC ( #913023=note: print w/ replies, xml ) Need Help??


in reply to Another reason for perl beginners to read perldocs

I don't see any problem with labeling lines with something descriptive. I do this in my code because it makes the meaning more legible in standard English. However, I would omit the semicolon in the else clause, so it would read

else {$flag = 0}

I typically use such one-line blocks in evals like

eval {this_may_die();};

Removing all the unnecessary punctuation makes it much nicer, in my opinion:

eval {this_may_die};


Comment on Re: Another reason for perl beginners to read perldocs
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (21)
As of 2015-07-30 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls