O
Obantec Support
Hi
i am reading data from a mysql source and i need to on certain lines when a
match occurs read the next few lines and output if not blank, then continue
the loop.
all lines have text except for the odd blank line.
i am using
$nic_nam="ShowMe";
foreach $i (@result)
{
if ($i=~ m/$nic_nam/) {
print "Found SHowMe<br>\n";
#now if this matches out put the next few lines while not blank from
@results
#max is only ever 7 lines.
}
}
hope i have explained enough.
Mark
i am reading data from a mysql source and i need to on certain lines when a
match occurs read the next few lines and output if not blank, then continue
the loop.
all lines have text except for the odd blank line.
i am using
$nic_nam="ShowMe";
foreach $i (@result)
{
if ($i=~ m/$nic_nam/) {
print "Found SHowMe<br>\n";
#now if this matches out put the next few lines while not blank from
@results
#max is only ever 7 lines.
}
}
hope i have explained enough.
Mark