Your question was answered, but man that was a terrible title you chose. Just really awful.
What you chose: "problem with perl 5" says absolutely nothing about the problem you actually have. It says "I don't like Perl 5" and you don't even realize it. Sure, the rest of us do and we correct your mistakes for you but don't you wish you could communicate more effectively in your life?
Next time, consider explaining your actual problem -- which was that your regex works in one VERSION of Perl but not another. For example, "Regex works in Perl5.14 but not Perl5.10"
After all, isn't your labor supposed to be cheaper than mine? Now we know ...
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.