5.8.4, but I think you're right that there is something else involved here.
#! perl -slw
use strict;
package thing;
sub new {
bless { VALUE => 'YES' }, $_[0];
}
sub value :lvalue {
my $this = shift;
$this->{VALUE};
}
package main;
print $];
my $thing = thing->new;
print $thing->value;
$thing->value = undef;
print $thing->value;
__END__
P:\test>junk2
5.008004
YES
Use of uninitialized value in print at P:\test\junk2.pl line 22.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
| [reply] [d/l] |
| [reply] |