Perl-Sensitive Sunglasses | |
PerlMonks |
Re: My coding guidelinesby Abigail-II (Bishop) |
on Nov 26, 2002 at 09:49 UTC ( [id://215810]=note: print w/replies, xml ) | Need Help?? |
You can't use prototypes to have the compiler check whether
an argument is an integer, or an object of a certain type.
Prototypes are less useful than you might think at first,
and they are sometimes bloody nasty. The following doesn't
do what you want:
&foo isn't called with two arguments - even while @bar has two elements. Remove the prototype, and it will work as expected. Abigail
In Section
Meditations
|
|