in reply to Connecting two scripts

Having second.pl read
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.

Replies are listed 'Best First'.
Re^2: Connecting two scripts
by madox (Novice) on Aug 15, 2007 at 17:47 UTC

    Sorry, can't understand your idea, you say that the filehandle of the first script exists in the second?, i tried this but not work, anyway, this is a test, in fact and when encounter the way, a non perl program send data to the script

    no, no notice appear

    Thk to all