Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Think about Loose Coupling
 
PerlMonks  

Re^2: improving the aesthetics of perl code

by TimToady (Parson)
on Jan 21, 2005 at 11:36 UTC ( [id://424041]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: improving the aesthetics of perl code
in thread improving the aesthetics of perl code

For instance, I think perlstyle says you should omit the last ; in a block.

No, that's not what it says at all. It says:

Semicolon omitted in "short" one-line BLOCK.
where "one-line" should be taken to include the curlies, and "short" should be taken to mean something that can be seen as a kind of visual "pill". So it's saying it's okay to omit the semicolon in
sort { $a <=> $b } @foo;
but not in
sort { $a <=> $b; } @foo;
So for the most part you're basically in violent agreement with perlstyle.

Replies are listed 'Best First'.
Re^3: improving the aesthetics of perl code
by g0n (Priest) on Jan 21, 2005 at 12:07 UTC
    Apologies, that'll teach me to do my research properly! :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://424041]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.