can be this:while(defined($_=<DATA>))
while (<DATA>)
also check open() for error:
open(DOC,'sample_testing') or die "Can't open input file: $!";
In reply to Re: Re: Substitute array value in regular expression
by ctilmes
in thread Substitute array value in regular expression
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |