in reply to Re^2: lvalue and perl debug
in thread lvalue and perl debug

don't you have to "use subs" or other some such pragma?
the hardest line to type correctly is: stty erase ^H

Replies are listed 'Best First'.
Re^4: lvalue and perl debug
by deepfryed (Novice) on Dec 10, 2007 at 00:29 UTC
    Nope, not really.
    my %foo; tie %foo, 'My::SpecialValidator'; sub bar : lvalue { $foo{bar}; } package My::SpecialValidator; sub STORE { my ($class, $attr, $value); if ($attr eq 'bar' && $value !~ /^\d$/) { # exception. } ... }