develooper Front page | perl.beginners | Postings from April 2012

Re: & and subroutine

Thread Previous | Thread Next
From:
Paul.G
Date:
April 19, 2012 05:07
Subject:
Re: & and subroutine
Message ID:
1334837222.51832.YahooMailNeo@web39304.mail.mud.yahoo.com
Thanks for everyone's assistance, I think I have my answer. I will be looking closer at the comments.

cheers



________________________________
 From: Michael Rasmussen <michael@jamhome.us>
To: beginners@perl.org 
Sent: Tuesday, 17 April 2012 11:01 PM
Subject: Re: & and subroutine
 
And for what it's worth.
113. Call subroutines with parentheses but without a leading &

That's from Damian Conway's Perl Best Practices
A quick reference to the 256 guidelines is found at
http://refcards.com/docs/vromansj/perl-best-practices/refguide.pdf

And a bit of luck, the entire chapter on subroutines, including the many reasons 
to prefer () to & is online:
http://www.devshed.com/c/a/Perl/Subroutines-in-Perl/


-- 
            Michael Rasmussen, Portland Oregon  
      Other Adventures: http://www.jamhome.us/ or http://westy.saunter.us/
Fortune Cookie Fortune du courrier:
The difference betwee a million and a billion is the difference between 
a sip of wine and 30 seconds with your daughter, and a bottle of gin and a night with her.
    ~ XKCD http://xkcd.com/558/

-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About