diff options
Diffstat (limited to 'lib/FileHandle.pm')
-rw-r--r-- | lib/FileHandle.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/FileHandle.pm b/lib/FileHandle.pm index 0b5d9edcb4..1dc699c85b 100644 --- a/lib/FileHandle.pm +++ b/lib/FileHandle.pm @@ -93,6 +93,11 @@ sub pipe { ($r, $w); } +# Rebless standard file handles +bless *STDIN{IO}, "FileHandle"; +bless *STDOUT{IO}, "FileHandle"; +bless *STDERR{IO}, "FileHandle"; + 1; __END__ |