ISAI student has asked for the wisdom of the Perl Monks concerning the following question:
Hello all. I am rewriting a subroutine, in which a check if a filehandle is in fact STDOUT is performed.
When not using use strict, the answer is very simple. However, bare word is anallowed when use strict is applied . Would ( $bar == \*STDOUT ) do?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: check if a filehandle is STDOUT when using use strict;
by bart (Canon) on Dec 31, 2012 at 11:22 UTC | |
by ISAI student (Scribe) on Jan 01, 2013 at 06:56 UTC | |
Re: check if a filehandle is STDOUT when using use strict;
by zwon (Abbot) on Dec 31, 2012 at 10:39 UTC | |
by ISAI student (Scribe) on Dec 31, 2012 at 10:49 UTC | |
Re: check if a filehandle is STDOUT when using use strict;
by mhearse (Chaplain) on Jan 01, 2013 at 17:58 UTC |
Back to
Seekers of Perl Wisdom