D
darkname
I have the following code!!
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!?
Tank you all
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!?
Tank you all