17:29 < zengargoyle> m: my $x = True; while $x { FIRST { say "first"
}; LAST { say "last" }; $x = False; }
17:29 <+camelia> rakudo-moar 1051fc: OUTPUT«last»
FIRST phaser does not fire in a while loop.
17:29 < zengargoyle> m: my $x = True; while $x { once { say "first" };
LAST { say "last" }; $x = False; }
17:29 <+camelia> rakudo-moar 1051fc: OUTPUT«firstlast»
On Sun Nov 01 17:37:23 2015, zengargoyle@gmail.com wrote:
No gist for this, simple:
17:29 < zengargoyle> m: my $x = True; while $x { FIRST { say "first"
}; LAST { say "last" }; $x = False; }
17:29 <+camelia> rakudo-moar 1051fc: OUTPUT«last»
FIRST phaser does not fire in a while loop.
This is a dupe of an issue I fixed a while back, and there is already test coverage in S04-phasers/first.t.
Migrated from rt.perl.org#126535 (status was 'resolved')
Searchable as RT126535$
The text was updated successfully, but these errors were encountered: