Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to call a script interactively from perl

by BrowserUk (Pope)
on Oct 08, 2012 at 22:07 UTC ( #997887=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
    chomp( my $interact1 = <STDIN> );
    chomp( my $interact2 = <STDIN> );
    print "Got: $interact1 $interact2";
    
  2. or download this
    C:\test>perl -E"$p = open I, '-|', '( echo fred & echo jim ) | interac
    +t.pl'; say for <I>;"
    Got: fred  jim
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (16)
As of 2014-07-23 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (145 votes), past polls