Hi - Jenda et. al. > -----Original Message----- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 13, 2003 4:21 AM > To: 'Beginners > Subject: Re: Duping IO::Srting > > I would like to pass a string scalar to an involked process > > as STDIN; I can do this with IO::File and IO::Socket > > classes, but not IO::String. > > <snipped> > > I'm not limiting myself to IO::String - any method of assigning to > > STDIN to a string scalar would be OK - I dearly want to avoid the > > overhead of doing something silly like writing to a temp file. > > It would be easiest to > use IPC::Open2; > <snipped> > Therefore if you have too much data it would probably be easiest to > print it into a temporary file and then run > > $result = `perl some-script < $tempfile 2>&1`; > unlink $tempfile; >
Yep, I found IPC::Open2 too much for me, and I am now sucessfully using a temp file. Thanks for your informal tutorial - it will come in handy some day. Aloha => Beau; PS: Is this what you meant by NOT top-posting? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]