No, it's fine -- cuz what I meant by hitting the nail askance -- is that eval really didn't like binary embedded in the source it was 'eval'ing -- as you mentioned. That section was being 'eval'ed twice, once by the new code that looped through the table to create the packages, and second, in the 'use pkg X.Y.Z;' code because you can't use an expression with 'use', so the only way to put in the version I wanted was have the eval "evaluate" the expression so it would behave normally.
My "hints" were that in some of the version strings I had quoted them and had done so deliberately, while in some of the I had not done so (again deliberately) -- and that the final test resulted in some tests that were quoted strings, while others used the 'binary' (as formed by the vector) value of the version string.
That's when I put it together -- why didn't the binary cause problems in original code -- because it is only turned into binary as it is eval'ed in the test case. Since I was evaling it twice, my first eval had to result in both a quoted (the qw('quoted string')) and a non-quoted value (qw(vec.tor)) for
the different test cases.
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.