I'm implementing a recursive subroutine to find all the permutations of elements in a list of lists. You can look
here to find out more on that subroutine.
Unfortunately, with the way the subroutine is implemented, the interpreter complains when a certain level recursion is reached. Inside the debugger, it complains when the 100th level of recursion is hit and exits("100 levels deep in subroutine calls!" is the error message).
It's not like the elements I'm using are particularly memory intensive. A conservative estimate would be that 2,000 characters are being pushed around at most at any one time. So it may actually be a limitation on the size of the call stack perhaps?
I'm running under Linux (one of the most recent ones, can't recall the exact version number) with 250 MB of RAM and generally 190MB free at any moment.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
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.