[Brisbane-pm] Passing a Two-Dimensional Array to a sub in Perl 5.8.6
Andrew Savige
ajsavige at yahoo.com.au
Thu Feb 22 13:31:30 PST 2007
--- Damian James wrote:
> However, I strongly suggest that even though Perl has a prototype
> mechanism that can be used to enforce passing by reference, not using
> it. Seriously, it's probably what's causing your confusion here.
Agreed. Quoting from Chapter 9 of Perl Best Practices:
"Don't use subroutine prototypes"
As for why, you can read all about it even if you don't own the book
because Chapter 9 is the freely available sample chapter at:
http://www.oreilly.com/catalog/perlbp/chapter/index.html
Cheers,
/-\
Send instant messages to your online friends http://au.messenger.yahoo.com
More information about the Brisbane-pm
mailing list