Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: tie stdout with IO::Scalar

by Mr. Muskrat (Canon)
on Jan 27, 2005 at 05:40 UTC ( #425469=note: print w/replies, xml ) Need Help??


in reply to tie stdout with IO::Scalar

How about you show us an example were it doesn't capture the output? Here's one that shows it working.

#!/usr/bin/perl use strict; use IO::Scalar; use Data::Dump qw(pp); use Data::Dumper::Simple; my $str; my $io = tie *STDERR, 'IO::Scalar', \$str; pp('monks'); undef $io; untie *STDERR; print Dumper($str); __DATA__ Z:\Perl>ioscalar.pl $str = '"monks" ';

Replies are listed 'Best First'.
Re^2: tie stdout with IO::Scalar
by PodMaster (Abbot) on Jan 27, 2005 at 05:52 UTC
      Thanks for the link.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2020-10-01 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (172 votes). Check out past polls.

    Notices?