in reply to check if a filehandle is STDOUT when using use strict;
It depends on what do you mean by filehandle is in fact STDOUT. E.g. consider the following:
$ perl -E'open my $foo, "<&=1"; say $foo->fileno; say $foo == \*STDOUT + ? "STDOUT" : "Not STDOUT"' 1 Not STDOUT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: check if a filehandle is STDOUT when using use strict;
by ISAI student (Scribe) on Dec 31, 2012 at 10:49 UTC |