Marcio Faustino wrote:
Can the defined operator/function be overridden? I ask this because
when I try to override it, apparently nothing happens. For example:
#----------------------------
use strict;
use subs 'defined';
use warnings;
sub defined($@) {
print "Inside defined\n";
}
defined(0) or die;
#----------------------------
"use subs" doesn't seem to work on defined(). OTOH, you can call the
function with the ampersand or with a fully qualified name.
&defined();
main::defined();
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/