Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: IPC::Run / bash pipe

by runrig (Abbot)
on Nov 07, 2013 at 00:56 UTC ( #1061510=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use IPC::Run qw(run);
    
    ...
    my $input = join("", map "$_\n", @arr);
    run [ sed => 's/[ad]/o/' ], "<", \$input, ">", \my $output;
    print "O: [$output]\n";
    
  2. or download this
    use IPC::Run qw(run);
    
    ...
    
    run [ echo => join("\n", @arr) ], ">", \my $output;
    print "O: [$output]\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2014-08-22 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (156 votes), past polls