IO::Tee

Posted by cojeff on 2009-05-21 10:27
Forums: PPM | OS: Windows

I've been writing a perl script to talk to a perforce server so it will generate a report. I'd like the script to output to two different places, the screen and a file. I found out I need the tee.pm for this to work. I was at CSPAN but I felt like a I was tumbling down the rabbit hole. One module needed another which needed another and so on. Isn't there any easier way to get the tee.pm to work on my windows xp (32bit). I have active perl 5.8.8 installed. The last module I tried to get installed was the ExtUtils but it reported it couldn't find a perl.exe anywhere.

Any help would be appreciated. Thanks!

tale103108 | Tue, 2009-05-26 11:33

I am using ActiveState Perl 5.8.8 on Win32 XP SP3.
I tried the following and had no issues installing ...

C:\>ppm install IO::Tee
Downloading ActiveState Package Repository packlist...not modified
Downloading wxansi packlist...failed 500 Can't connect to www.wxperl.co.uk:80 (c
onnect: Unknown error)
Downloading wxperl packlist...failed 500 Can't connect to www.wxperl.co.uk:80 (c
onnect: Unknown error)
Downloading padre packlist...not modified
Downloading IO-Tee-0.64...done
Unpacking IO-Tee-0.64...done
Generating HTML for IO-Tee-0.64...done
Updating files in site area...done
2 files installed

C:\>perl -e "use IO::Tee;"
C:\>

You can also try:

C:\>perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support enabled

cpan> install IO::Tee
------------------------------------
HTH
Tony