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);
In reply to Re^2: Problems with Filehandles and TeeOutput
by hkpatv
in thread Problems with Filehandles and TeeOutput
by hkpatv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |