in reply to :lvalue, How I Hate Thee
At one point, I have to figure out why this didn't work:
Define "didn't work"? In what way didn't it work?
This compiles and runs without error:
#! perl -slw use strict; package thing; sub new { bless {}, $_[0]; } sub value :lvalue { my $this = shift; $this->{VALUE};} package main; my $thing = thing->new; $thing->value = undef;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: :lvalue, How I Hate Thee
by jk2addict (Chaplain) on Aug 17, 2005 at 19:40 UTC | |
by BrowserUk (Patriarch) on Aug 17, 2005 at 20:10 UTC | |
by DrWhy (Chaplain) on Aug 17, 2005 at 22:34 UTC | |
|
Re^2: :lvalue, How I Hate Thee
by jk2addict (Chaplain) on Aug 17, 2005 at 19:57 UTC |