in reply to Scalars tied to logfiles
Rather than dieing if unable to open the logfile for writing, I'd just return undef. Of course, I wouldn't use IO::File either, so maybe it's just me.
To figure out where the changes happened to the scalar, have a look at caller
Oh, and you'll probably want to add an UNTIE routine so that users can turn logging on and off without having to wait for object destruction.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Scalars tied to logfiles
by mugwumpjism (Hermit) on Dec 11, 2003 at 05:29 UTC | |
by duff (Parson) on Dec 11, 2003 at 05:31 UTC | |
by davido (Cardinal) on Dec 11, 2003 at 05:42 UTC |