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

Re: deal with system output

by mortis (Pilgrim)
on Nov 30, 2001 at 01:45 UTC ( [id://128470]=note: print w/replies, xml ) Need Help??


in reply to deal with system output

In addition to using the aforementioned backtick solutions, you may also want to look into IPC::Open2 and IPC::Open3, as they are much easier to use when the taint flag is on.

It's usualy much easier (and safer) to just do:

my $pid = open2($reader,$writer,'ping',@args);
Instead of trying to un-taint the arguments to backticks.

Kyle

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found