Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2021-10-23 13:46 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (88 votes). Check out past polls.