G
Graham
I want to match $variable in an array. My script is as follows:-
foreach ($line(@lines)
{
if ($line =~ /\$variable/i)
{
$counter++;
last;
}
}
The array definitely contains $variable, but I get no match. I've tried
countless variations of the line:
if ($line =~ /\$variable/i)
all to noavail
Can someone put me out of my misery, please?
foreach ($line(@lines)
{
if ($line =~ /\$variable/i)
{
$counter++;
last;
}
}
The array definitely contains $variable, but I get no match. I've tried
countless variations of the line:
if ($line =~ /\$variable/i)
all to noavail
Can someone put me out of my misery, please?