Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: error message in the end of the array looping?

by qbxk (Friar)
on May 30, 2006 at 17:54 UTC ( [id://552568]=note: print w/replies, xml ) Need Help??


in reply to error message in the end of the array looping?

o anonymous brother, I feel that i must bring a certain unsaid morsel of advice to the forefront, for in your particular case it seems exceedingly relevant. it is the case of your indentation and whitespace style. the replies here contain many good examples of effectively using whitespace. specifically, i strongly disagree with your choice of
if ($condition) {foo(); bar();}
among the many reasons for my distaste, one, is because there is no room to "grow". this is not easily maintainable. something more like
if ( $condition ) { foo(); #easily read and/or insert & modify code here bar(); }
is my typical method

i know this is a sensitive subject, and all are entitled to their own approach, but some constructs are more widely used because they offer advantages to the programmer(s). in the possible case that you have not puch much thought into your use of whitespace and the other superficial aspects of your code* i suggest that you do. it can clear your mind, it may cleanse your soul.

*some superficial aspects of code that come to mind:
variable naming, comments, commonly used task idioms, choice of quote characters

It's not what you look like, when you're doin' what you’re doin'.
It's what you’re doin' when you’re doin' what you look like you’re doin'!
     - Charles Wright & the Watts 103rd Street Rhythm Band

Log In?
Username:
Password:

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

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

    No recent polls found