in reply to Re^2: Moose attribute predicate alternative
in thread Moose attribute predicate alternative

Are you sure? This does not work:

print $a if ++$a for qw/x y w h/;

while this does work:

do { print $a if ++$a } for qw/x y w h/;

(compare Syntax error in Nested for)

Replies are listed 'Best First'.
Re^4: Moose attribute predicate alternative
by Anonymous Monk on Jul 04, 2013 at 15:35 UTC
    ++$a and print $a for qw/ x y y y /;