On Wed, 2002-04-03 at 20:49, Larry Wall wrote:

> : Additionally, can you chain statement modifiers?
> : 
> : do_this() if $a unless $b;
[...]
> No, still can't chain them.

That's a darned shame. In p5, I keep going back to code and finding
something like:

        print foreach @x;

and wanting to change it to:

        print foreach @x if @x > 2;

or finding this:

        print $_ if /^X/;

and wanting:

        print $_ if /^X/ for split /\n/;

Yes, I know this last one can be accomlished by:

        print $_ while /^(X.*)/mg;

but the former always seems more obvios to me.


Reply via email to