in reply to Re^2: Redirect to STDOUT and file
in thread Redirect to STDOUT and file

open isn't going to create a file (named IO::Tee=GLOB(0x123456) or anything else) when it wasn't asked to create a file. It returns the error "Invalid argument".

Not for me under 5.8.8:

$ ls $ perl -Mstrict -MIO::Tee -le 'my $tee=IO::Tee->new(">/dev/null"); ope +n(FH, ">&", \*$tee)' $ ls IO::Tee=GLOB(0x8802e2c) $ perl -e 'printf "%vd\n", $^V' 5.8.8

Replies are listed 'Best First'.
Re^4: Redirect to STDOUT and file
by ikegami (Patriarch) on Jan 12, 2008 at 05:28 UTC

    How odd. It shouldn't. I had tested to make sure it didn't before posting. But I forgot to take into consideration that ":" is a special character in my system (Windows) .