I did notice its frequency is greater on runs of over 18000 iterations (Update: On further testing I found that theory not to hold up. The rest of the thread stands.</end update>), and even then it's about 30% of the time when I terminate by keyboard intervention.
Hmm, what other variables..... It's Windows Vista SP2. Perl version is 5.12.3, Strawberry Perl.
Here's another example run, where I terminated the loop earlier.
6043 is prime.
6047 is prime.
6053 is prime.
Out of memory!
panic: leave_scope inconsistency at C:\Users\Dave\Desktop\primes.pl li
+ne 15.
panic: leave_scope inconsistency at C:\Users\Dave\Desktop\primes.pl li
+ne 15.
panic: leave_scope inconsistency at C:\Users\Dave\Desktop\primes.pl li
+ne 15.
panic: leave_scope inconsistency at C:\Users\Dave\Desktop\primes.pl li
+ne 15.
And here's another example:
4409 is prime.
4421 is prime.
4423 is prime.
Out of memory!
Use of uninitialized value $i in concatenation (.) or string at C:\Use
+rs\Dave\Desktop\primes.pl line 18.
is prime.
2 is prime.
Label not found for "next OUTER" at C:\Users\Dave\Desktop\primes.pl li
+ne 16.
...and one more...
6271 is prime.
6277 is prime.
Out of memory!
panic: leave_scope inconsistency at primes.pl line 15.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Outside of code tags, you may need to use entities for some characters:
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
|
|