ibjdt
Programmer
- Nov 25, 2002
- 63
i am reading a flat text file to an array and then looking at each line for a string. I want to perform an operation if i find the exact string
however, this will find abcd and zabc.
i only want to allow
::abc::
::abc|
|abc|
|abc::
thanks in advance.
Code:
$string = abc;
if ($line =~ /$string/) { do soemthing }
however, this will find abcd and zabc.
i only want to allow
::abc::
::abc|
|abc|
|abc::
thanks in advance.