in reply to stdout question

Backticks are your friends. This was tested on Windows:
#!/usr/bin/perl -w # test-stdout.pl use strict; print "Hello, world."; -------------------------- #!/usr/bin/perl -w # test.pl use strict; my $prog_output = `perl test-stdout.pl`; print "\nIt said [$prog_output]\n";
Or if you like, you can use qx( ), which does the same thing as backticks.