in reply to Wx Server reform
Not a full answer to your problems... but a start: At line 7 (and numerous other spots), you comment out "use strict;" and/or "use warnings;"
That's a mistake.
strict will tell you when and where (or pretty close) you've made typos (such as using two different spellings for a single $var) and the like. Keep "use strict" (and "use warnings") in ALL your code until you know precisely why you should omit it.
OTOH, you're probably right about deleting "use 5.008" unless you are using a very old version of Perl. Current is 5.16 (or 5.14 if your vendor hasn't caught up).
Now, some WAGs, as I find your problem statement and code confusing (or maybe because it's pre-caffeine of a Sunday am):
Re your while problem: perhaps using an equality test rather than an assignment would be worth considering?
And, "return where?" -- looks to me like an exit from the package to return to your main.
Thank goodness, the kettle's whistling.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Wx Server reform
by gg4000 (Novice) on Jun 03, 2012 at 13:08 UTC | |
by ww (Archbishop) on Jun 03, 2012 at 14:24 UTC | |
by gg4000 (Novice) on Jun 03, 2012 at 15:00 UTC | |
by afoken (Chancellor) on Jun 03, 2012 at 15:35 UTC | |
by ww (Archbishop) on Jun 03, 2012 at 16:03 UTC | |
by gg4000 (Novice) on Jun 03, 2012 at 18:28 UTC | |
|