Hi stallion,
Two quick observations. The line
my $Data .= $text;occurs within the inner while loop, and because of the my the $Data variable is being created anew (and effectively initialised to $text) on each loop iteration. So, the concatenation has no effect and $Data never grows from one loop iteration to the next.
Also,
close ($file);is called on each iteration of the while loop, but this file doesn’t seem to be opened anywhere?
HTH,
Athanasius <°(((>< contra mundum
In reply to Re: Replacing in DOC file
by Athanasius
in thread Replacing in DOC file
by stallion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |