Try adding word boundaries \b like this ;
while (<DATA>){ if (/\bBIND\b/){ print $_; } } __DATA__ this is a BIND sentence I have UNBIND in this one BIND as first word last word is BIND
In reply to Re^5: Undefined Error
by poj
in thread Undefined Error
by johnrein55
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |