Tor Hildrum <[EMAIL PROTECTED]> writes: > I have never used this module before in my life, but are you sure > $handle1 and $handle2 aren't supposed to be refs to actual > File-Handles?
Yeah, probably something like that but what else needs to be in there to make the example work? Running it just the way it appears in perldoc: use IO::Tee; $tee = IO::Tee->new($handle1, $handle2); print $tee "foo", "bar"; my $input = <$tee>; Isn't very enlightening either: $./test.pl Name "main::handle2" used only once: possible typo at ./io.pl line 5. Name "main::handle1" used only once: possible typo at ./io.pl line 5. Use of uninitialized value in open at \ /usr/lib/perl5/5.8.5/i386-linux-thread-multi/IO/File.pm line 176. Can't use an undefined value as a symbol reference at ./io.pl line 6. I really don't understand the: my $input = <$tee>; part. I don't really follow any of it, except what you noticed, that the print is supposed to be printing to two filehandles. There seems to be too much missing to make any sense of it. At least for someone who is perl challenged. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>