Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by vsergu (505) on 2004.04.05 16:06 (#29909) Journal

    Have you read the bit in perlsub that suggests lvalue methods like that are a bad idea?

    A normal mutator can check the supplied argument before setting the attribute it is protecting, an lvalue subroutine never gets that chance.

    Okay, it's a run-on sentence, but it seems reasonable to me, and it then gives an example. Do you disagree? I haven't done much with lvalue subroutines, so maybe there's a way around the problem.

    • Wow. That perldoc sentence is as bad as some of the sentences I've been known to spit out: s/,/;/;.

      I think you're right. A nice idea foiled by a poor implementation :(