I get always the message "unknown switch condition m/(?(<--HERE". Why unknown? Where is my fault? Thats supposed to be a if then Regex with an integrated Perl counter. What do I wrong? Thank you very much for your help.my $covCounter = 0; open(EVALUATION, "< $evalFile[0]") or die $!; undef $/; (my $shortFile = <EVALUATION>) =~ s/^.+-+ END -+//gs; $shortFile =~ /(?(^(\d+ )+\s+(\d+)+$)(?{$covCounter++}))/gm; close EVALUATION;
20050329 Edit by ysth: code tags
In reply to Regex (?(...)...) by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |