Marcio Faustino wrote:
Hi,
Hello,
Can the defined operator/function be overridden?
perldoc -f prototype prototype FUNCTION Returns the prototype of a function as a string (or "undef" if the function has no prototype). FUNCTION is a reference to, or the name of, the function whose prototype you want to retrieve. If FUNCTION is a string starting with "CORE::", the rest is taken as a name for Perl builtin. If the builtin is not overridable (such as "qw//") or its arguments cannot be expressed by a prototype (such as "system") returns "undef" because the builtin does not really behave like a Perl function. Otherwise, the string describing the equivalent prototype is returned. 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"' 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/