On approximately 11/22/2003 6:21 PM, came the following characters from the keyboard of $Bill Luebkert:
Glenn Linderman wrote:
Should it work as is? If not, why not? I can't find any documented reason why it shouldn't work, and I do find references in Camel that imply that eval'd code inherits the lexical scope at the point of the eval. And it seems to see the variables, just not their values...
I've never looked at the Perl internals, so I can't help you there. Maybe Jan will pick up on it.
I would try to avoid using global variables and pass them as args when necessary (except for the rare cases when that's not practical).
Thanks Bill. I'm no expert on Perl's internals either, just starting to putter around a bit in XS land, so have been reading some of the internals documentation, but that doesn't make me an instant expert!
An internals expert is certainly required to determine where the bug is, if it is a bug. But the concept of whether it is a bug or a feature should be determinable by a reading of the documentation for the language. As far as I can determine from reading appropriate sections of Camel, this is a bug. If not, the documentation of eval and lexical scoping needs some extra work to explain why this isn't a bug! And why I should expect variables to which I've given values to suddenly be undef!
-- Glenn -- http://nevcal.com/ =========================== Like almost everyone, I receive a lot of spam every day, much of it offering to help me get out of debt or get rich quick. It's ridiculous. -- Bill Gates
And here is why it is ridiculous:
The division that includes Windows posted an operating profit of $2.26 billion on revenue of $2.81 billion.
--from Reuters via http://biz.yahoo.com/rc/031113/tech_microsoft_msn_1.html
So that's profit of over 400% of investment... with a bit more investment in Windows technology, particularly in the area of reliability, the profit percentage might go down, but so might the bugs and security problems? Seems like it would be a reasonable tradeoff. WalMart earnings are 3.4% of investment.
_______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs