Re: use strict and foreach

2001-10-26 Thread Jeff 'japhy' Pinyan
On Oct 26, [EMAIL PROTECTED] said: >use strict; >use FileHandle; >use constant CONSOLE => 'STDOUT'; Instead of the string 'STDOUT', use *STDOUT or even \*STDOUT. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/

use strict and foreach

2001-10-26 Thread RArul
Friends, When I wish to simultaneously output the information to console screen as well a log file, I am getting an error if I have the use strict pragma turned on. If I comment it out, it works fine. How would I overcome this problem? Here is the pseudo-code: use strict; use FileHandle; use