Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

(RhetTbull) Re: stdout question

by RhetTbull (Curate)
on Nov 26, 2001 at 01:32 UTC ( #127424=note: print w/replies, xml ) Need Help??


in reply to stdout question

Depending on what you're trying to do, backticks may be what you're looking for. Executing something like:
my $stuff = `foo`;
will capture whatever foo printed to stdout in the variable $stuff. Alternatively, you can get more complicated output filtering with Filter::Handle.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://127424]
help
Chatterbox?
[choroba]: unit tests++
[choroba]: The only problem you can't solve by adding more tests is the problem of having too many tests.
[stevieb]: choroba Been there, done that :) Better too many than not enough though!
[stevieb]: I very often write a base set of unit tests before writing any code. It helps dictate the API, and ensures my earliest of ideas stay on track.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-07-21 20:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (335 votes). Check out past polls.