Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: open command for input

by aitap (Deacon)
on Nov 23, 2012 at 17:58 UTC ( #1005311=note: print w/replies, xml ) Need Help??


in reply to Re^2: open command for input
in thread open command for input

Another option is IPC::Open2, which is in core. This will require a bit more code, but should work:

use IPC::Open2; open IN, "<", "commandfile"; # unfortunately, scalar filehandles won't + work this way open OUT, ">", "logfile"; my $pid = open2(">&OUT", "<&IN", "theprogram"); waitpid $pid, 0;

You can also package your application together with module you use with the help of PAR::Packer (its installation is required only on the packager's computer). But I don't know whether it will interfere with PDK or not.

Sorry if my advice was wrong.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005311]
help
Chatterbox?
[choroba]: :-D
[LanX]: What about Czech an Chechen ambessy?
[AnomalousMonk]: LanX: Rama had (has?) a high (much higher than typical asteroid) rate of axial (again, unusual, I think) spin for its artificial gravity.
LanX pity there is no Germs embassy ...
[choroba]: LanX We merged them to save money.
[LanX]: AnomalousMonk: yeah the asteroid but not the god, right?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (13)
As of 2017-11-22 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (327 votes). Check out past polls.

    Notices?