Stories
Slash Boxes
Comments
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.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Data::PostfixDeref (also a lame name, but never mind) will allow you to write

    sub add_args {
        my $self = shift;
        push $self->{args}[], @_;
    }

    instead. It has its limitations: there is no slice syntax, because I haven't decided whether $foo->{bar}[][1, 2, 3] is too weird or not yet, and because it's somewhat trickier to implement; and it doesn't allow a direct deref $foo->[] due to the optimizer not getting run on the ops involved.

    It doesn't use a source filter, instead it hooks into PL_check[], so it shouldn't suffer from all the 'can't-parse-perl' issues source filters have; nevertheless, I'd still consider it 'alpha'...