Re: Find and delete a line, problems finding



sakuragirl1 wrote:
[...]
print TEMPFILE $line unless $line =~ (/$accountnumber/ &&
[...]


You might want to match against word boundaries for the account number, e.g.;

/\b$accountnumber\b/

See "man perlre" as Paul Lalli suggested.

.