in reply to Re^2: Array Filter and Lookahead
in thread Array Filter and Lookahead

Right, I forget about Perl 5's insane behavior about capture variables when a match failed. The correct way would be to use /.../ and $1 // '' or some variation thereof.