in reply to Re: Problems with Filehandles and TeeOutput
in thread Problems with Filehandles and TeeOutput
Note the resason I am using IO::File is because actually I want to use IO::File->new_tmpfile, but as that doesn't work I am trying IO::File->new to make testing easier. Note the only reason I was trying to get new_tmpfile working was cause I couldn't get it into a string using scalar I/O#Works local *LOG; open(LOG, '>>test.out'); openTee(*STDOUT, *STDOUT, *LOG); #Does not work my $fh = IO::File->new(">>test.out"); openTee(*STDOUT, *STDOUT, *$fh); #Does not work open(my $fh, '>>', 'test.out'); openTee(*STDOUT, *STDOUT, *$fh); #Does not work open(my $fh, '>>', 'test.out'); openTee(*STDOUT, *STDOUT, *$fh); #Works openTee(*STDOUT, *STDOUT, '>>test.out'); #Works openTee(*STDOUT, *STDOUT, 'test.out');
open($fh, "+<", \$string);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problems with Filehandles and TeeOutput
by ikegami (Patriarch) on Aug 26, 2008 at 05:56 UTC | |
by hkpatv (Initiate) on Aug 26, 2008 at 09:24 UTC | |
by ikegami (Patriarch) on Aug 26, 2008 at 18:08 UTC | |
|
Re^3: Problems with Filehandles and TeeOutput
by massa (Hermit) on Aug 26, 2008 at 09:41 UTC | |
by ikegami (Patriarch) on Aug 26, 2008 at 17:27 UTC | |
by hkpatv (Initiate) on Aug 27, 2008 at 01:33 UTC |