in reply to sub STDERR { *STDERR } -- nearly works !
The idea with using $FH instead of FH is to avoid messing with other scope, being affected by other scopes, and to ensure timely garbage collection.
None of those benefits are achieved by using $STDERR instead of STDERR — the variable is global even if you pretend it isn't — so you're needlessly complicating your code. I hope that you will revert to using STDERR now that you figured this parsing puzzle.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sub STDERR { *STDERR } -- nearly works !
by gone2015 (Deacon) on Apr 09, 2008 at 08:39 UTC | |
by ikegami (Patriarch) on Apr 09, 2008 at 09:06 UTC | |
by gone2015 (Deacon) on Apr 09, 2008 at 10:07 UTC |