Thanks!

Try::Tiny sounds good, I'll use that in my code.

Please can you answer these questions if possible (to help my Perl indoctrination ;) )

1. Would going $@ = '' after a failed eval work?
2. Would use local $@ also work?
3. Should I report this as a bug to the Tokenizer.pm maintainer?

BTW, check whom you are replying to.
I normally (almost always) use the "Comment on" link just under the OP.
I'm not used to forums where you can reply to individual posts, most of the forums I use just allow you to add a new post to the end of the topic. Also I find I sometimes miss new comments that are added as replies to earlier comments.
Is using the "Comment on" link OK? Or is using the reply-to-comment link preferred?

In reply to Re^3: Very weird bug - insight would be helpful by zork42
in thread Very weird bug - insight would be helpful by zork42

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.