Spencer_Lists wrote: > Greetings perl-win32-users, > > I think that I just experienced the second instance of an odd bug in > perl 5.8 for win32. It took me all day to get a rather simple script > to work. I kept thinking it was my code. Finally, I moved an array > assignment outside of an if statement block and it started working. > Sorry about the terrible formatting but my mail client has a crappy > editor and will make it even worse if I try to edit it.
No excuse. Format it properly, compile it using 'use strict;' and 'use warnings;' till it has no errors (or produces the expected error) and then post it by cutting and pasting into the email (from your text editor). If you don't have a good text editor, I would go out and get one and learn it if you plan on doing any amount of coding (Vim and Emacs are free, multi-platform and very good products). > There are two places where an array element is made undefined and a > new one is pushed on the array to replace it. If both of these > replacements occur in the same program block, all sorts of strange > things happen. The following works fine. Then why post it ? I would suggest a smaller example (test case) that works and reproduces what you are trying to tell us and another that fails (if indeed that is what you are stating). One of your pushes is after setting the undef and the other is before. Not sure if that has any bearing since I have no idea what you are doing in your code. > Is there something that I am missing that is wrong that could account > for this? This only happened one time before and I used a similar fix. You need to show what fails and what works so we can see what you're talking about - and do it with a simple test case that is easy to follow. -- ,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED] (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/ -/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff) _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs