O wise ones,
I tripped on an issue while using lvalue accessors for something I am cooking up. perl debug does *not* like it, so mutators do not work in debug. Is there a workaround for this, or should my lvalue'd subs be going the way of the dodo ?
#!/usr/bin/perl
use strict;
use warnings;
my $foo = 1;
sub foo : lvalue { $foo };
foo() = 10;
#will print 1 in perl -d
print foo(), $/;