in reply to Re^4: globally seen variable
in thread globally seen vairable
You need to use our $ERROR_FILE; in each scope in which you need visibility.
Rather than this comment....
## $ERROR_FILE is global var ## open OF, ">>$ERROR_FILE" or die "cannot open ERROR_FILE $ERROR_FILE\n" +;
This serves the same purpose, and gives you that visibility.
our $ERROR_FILE; open OF, ">>$ERROR_FILE" or die "cannot open ERROR_FILE $ERROR_FILE\n" +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: globally seen variable
by vit (Friar) on Sep 28, 2010 at 22:11 UTC | |
by BrowserUk (Patriarch) on Sep 29, 2010 at 14:32 UTC |