Front page | perl.beginners |
Postings from April 2012
Re: & and subroutine
Thread Previous
|
Thread Next
From:
Michael Rasmussen
Date:
April 17, 2012 06:01
Subject:
Re: & and subroutine
Message ID:
20120417130112.GC27297@jamhome.us
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/
Thread Previous
|
Thread Next