Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: On bad habits

by DrHyde (Prior)
on Jun 22, 2005 at 07:26 UTC ( [id://468923]=note: print w/replies, xml ) Need Help??


in reply to On bad habits

I hate heredocs. They break your indentation.

And I probably have the opposite bad habit to you with regards to map/join/grep instead of foreach - I should use foreach more. With foreach, your code reads from top left to bottom right, but with map and grep your code keeps changing direction and can sometimes be harder to read.

Incidentally, this whole thread - and the many others like it that we have had in the past here in the monastery - smack of Mao-ist self-criticism ;-)

Replies are listed 'Best First'.
Re^2: On bad habits
by Xenograg (Scribe) on Jun 24, 2005 at 21:30 UTC
    >I hate heredocs. They break your indentation.

    The Perl Cookbook has a hack for that.

    --- The harder I work, the luckier I get.

Log In?
Username:
Password:

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

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

    No recent polls found