Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

RE: proof that perl is poetry (?)

by Hyler (Sexton)
on Jun 03, 2000 at 14:55 UTC ( #16177=note: print w/replies, xml ) Need Help??

in reply to proof that perl is poetry (?)

What if your friend had written the comments?
One thing I like is that "There's more than one way to do it.". You can use $. or you can use &printlinenumber();

There is a metric buttload of books written on software maintenance. One example I saw regarding commenting code and using terse variable names was along the lines of(pseudocode)

F_CNT=F_CNT+1; # Select the next flight
The first one requires at least ten more keypresses.

So, in Perl, you have to comment. But I suggest thatyou keep the comments in the beginning of the script(s) and/or in the beginning of a function call or sub, kind of like in """that snake language""" or in /** JavaDoc */. Better than intermingled everywhere.

Makes Perl a pleasure to read, as always...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2021-04-15 09:29 GMT
Find Nodes?
    Voting Booth?

    No recent polls found