in reply to Re^2: How can I avoid code repetition here
in thread How can I avoid code repetition here

You have been able to do that for the past 22 months:
$ perl -wle 'my $_ = "abc"; chop; print' ab $

Replies are listed 'Best First'.
Re^4: How can I avoid code repetition here
by rovf (Priest) on Oct 08, 2009 at 10:56 UTC
    Which Perl version was this introduce in? I still used 5.8.8, so it was illegal there. I see that it works in 5.10

    -- 
    Ronald Fischer <ynnor@mm.st>
      5.10. Which was released about 22 months ago. You shouldn't be claiming things are not allowed if all you do is check it against an old version of Perl.

        Honestly I had not expected that this would ever become valid, and I'm still puzzled how this can work, i.e. how a builtin function (like chop) can modify *any* localized variable by name...

        -- 
        Ronald Fischer <ynnor@mm.st>