From: Francesco del Vecchio <[EMAIL PROTECTED]> > I've got a weird problem using an external program that get the input > from "stardard input" > > I've got to call it (and easily do this with "system('myprogramname')" > but I've to feed this program with an XML file that generally is > passed via standard input with a "filename | myprogramname" in the > shell, but in my case it is in a variable of my perl program > > How can I do it without write a file on the filesystem?
open PIPE, '|myprogramname params' or die "Failed to start myprogramname: $!\n"; print PIPE $all_the_data_you_need; close PIPE; # this closes the program's STDIN. Please read perldoc perlipc Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>