>>>>> "Hazael" == Hazael Maldonado Torres <[EMAIL PROTECTED]> writes:

Hazael> I am trying to use prototype functions with object but this seems not
Hazael> to work, I mean perl does not check for the type of arguments.

Exactly.  Prototypes are meant for one thing only: to have a Perl function
emulate a built-in.

They are not meant for "checking argument lists".  And there are no
built-ins that have odd argument processing for method calls, which is
why they don't need to work there either.

Please do not use prototypes until you understand why you should not
use prototypes. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to