in reply to Re^2: Logging run-time warnings from an embedded perl interpreter
in thread [RESOLVED*] Logging run-time warnings from an embedded perl interpreter
If you've got variable name clashes with the app itself, then there's a reasonable chance you're hurting its internals.
Unless such names are documented ways of interacting with the app, it seems like poor design. I would have thought they could have scoped the names into packages and had a limited/no lexical scope over your code.
The my $x if 0; construct is a bad (and unreliable in that's its behaviour may change in different versions of perl) way of generating what C programmers know as a static variable, i.e. one which maintains it's value across invocations of the function. This may not be what you're expecting, I don't know.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Logging run-time warnings from an embedded perl interpreter
by Hercynium (Hermit) on Nov 25, 2007 at 15:50 UTC |