Have fun with this one :) A few things to note: SPACING MATTERS!!! The spacing on this has to be exact; I recommend downloading the code and then removing the trailing spaces at the end, and the leading space at the top.

Also, a few monks that have tested it for me have told me that that there is an error; all have been running linux. However, other monks under linux have told me it works fine for them. I personally am running Activestate 5.6.1 under Windows 2000. However, there is nothing in the code that should prevent it from being non-cross platform. If you can spot the problem, please inform me so I can update it.

Also, if the snippits it spits out at you are too hard, run it again. They'll change every time ;)

Don't even bother with deparse; it'll make the interpreter puke all over your keyboard.

Finally, don't vote on this comment node right here; I just wanted to make the parent node clean.

Update:
I think the problem that some people were having is that they are running versions of perl under 5.6.1; everyone who has msged me with a problem has been below that. So use this as an excuse to update ;)


In reply to Re: Bugs in my code? by jryan
in thread Bugs In My Code? by jryan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.