You appear to be using the (experimental) construct (?(...)...) incorrectly. In fact, I don't know why you're using it at all.
$shortFile =~ /^(\d+ )+\s+(\d+)+$(?{$covCounter++})/gm;
And you're also using the experimental construct (?{...}) for no good reason.$shortFile =~ /^(\d+ )+\s+(\d+)+$(?{$covCounter++})/gm;
can be written as:
$covCounter++ while $shortFile =~ /^(\d+ )+\s+(\d+)+$/gm;
btw, please use <code> tags around your code.
In reply to Re: Regex (?(...)...)
by ikegami
in thread Regex (?(...)...)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |