in reply to Re^2: :lvalue, How I Hate Thee
in thread :lvalue, How I Hate Thee
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: :lvalue, How I Hate Thee
by DrWhy (Chaplain) on Aug 17, 2005 at 22:34 UTC |