S
Steve Hémond
Hi people,
I want each line of a file to be checked for occurences :
if ($line =~ /x/ || $line =~ /\b[Tt]he\b/)
{
print "$a $line";
$a++;
}
if any 'x' or any 'the' or 'The' word is found in the line, I print the line
number.
Is there any way I can simplify this line? :
if ($line =~ /x/ || $line =~ /\b[Tt]he\b/)
Thanks in advance,
Steve
I want each line of a file to be checked for occurences :
if ($line =~ /x/ || $line =~ /\b[Tt]he\b/)
{
print "$a $line";
$a++;
}
if any 'x' or any 'the' or 'The' word is found in the line, I print the line
number.
Is there any way I can simplify this line? :
if ($line =~ /x/ || $line =~ /\b[Tt]he\b/)
Thanks in advance,
Steve