Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: running perl scripts from other perl scripts.

by arturo (Vicar)
on Sep 14, 2001 at 00:34 UTC ( [id://112300]=note: print w/replies, xml ) Need Help??


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")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://112300]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found