I suppose there may be a use case somewhere where the result of one "defined" is fed into another, but my first reaction was that this is a bug. What do other monks think about this? Is this a bug in Perl or a "feature"?
#!/usr/bin/perl use strict; use warnings; my $x; if (defined $x) { print "True\n"; } else { print "False\n"; } if (defined defined $x) { print "True\n"; } else { print "False\n"; }
"Its not how hard you work, its how much you get done."
In reply to defined defined -- Bug or "Feature"? by roho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |