in reply to running perl scripts from other perl scripts.

Read How can I capture STDERR from an external command?. HTH.

perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth +er_name\n"'

Replies are listed 'Best First'.
(tye)Re: running perl scripts from other perl scripts.
by tye (Sage) on Sep 14, 2001 at 00:58 UTC

    If the original poster wants to include Win9x in their definition of Win32, then the methods you link to won't work for them.

    The most portable way I know to do this is:

    use IPC::Open3; my $pid= open3( "<&STDIN", *OUT, *OUT, "command" ); my @errors= <OUT>; close OUT; my $status= waitpid $pid, 0;

            - tye (but my friends call me "Tye")