Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: On bad habits

by DrHyde (Prior)
on Jun 22, 2005 at 07:26 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2021-10-23 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (88 votes). Check out past polls.

    Notices?