On Tue, 24 Dec 2013 18:44:51 -0800, Russ Allbery wrote: > > foreach (grep { $_ } split /(?<!\\)\s+/, $data->{"files-excluded"}) { > > s?\\??g; # to keep the style of what's in uscan ... > > say $_; > > } > > The trouble with this approach is that it mis-splits: > > foo\\ bar > > which should become "foo\" and "bar".
Ah, good point. > You need a negative look-behind > assertion that accepts an odd number of backslashes, at which point you > run into the problem that negative look-behind assertions have to be > fixed-length. Ack. Andreas: please take Russ' solution :) Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Alanis Morissette: King Of Pain
signature.asc
Description: Digital signature