open RG, '>./register.txt';
from the file you open in first.pl,
open HG, '|second.pl';would help.
Had you tested your opens, you might have noticed this.
In reply to Re: Connecting two scripts
by ww
in thread Connecting two scripts
by madox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |