Marcio Faustino wrote:

On Sep 23, 12:01 am, [EMAIL PROTECTED] (John W. Krahn) wrote:
So a function like 'open' can be overridden:

$ perl -le' print prototype "CORE::open"'
*;$@

But it looks like 'defined' cannot:

$ perl -le' print prototype "CORE::defined"'

Thanks, I didn't know that functions whose arguments cannot be
expressed by a prototype couldn't be overridden.

That's the only reason (AFAIK) that prototypes were added to Perl, to override built-in functions.



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

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


Reply via email to