foreach $line (@fich){ $i++; foreach $comm (@com){ if(($line eq $comm)||($line=~/$comm/)){ print"Line $i: $comm"; } } }
The problem is that the instruction in the if condition ($line=~/$comm/) gives me an error!!! "Nested quantifiers before HERE mark in regex m//** << HERE"....
The @comm and @fich arrays contain the contents of two distinct files!
Can someone tell me why this code gives me this error!?
Thank you allIn reply to Regex ERROR! by nofernandes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |