Oh, I was just horsing around. Have you tried writing any code yet? Try looking through some of the POD for Perl functions like substr, index, split, pos, and the page for regexes perlre. Like so-
# update, adding one with an -f flag for clarity
perldoc -f pos
perldoc perlre
See if you can at least parse the string out a little in any way. If you're stuck. Show the code you tried. A little effort is usually rewarded generously here. A question without it tends to get less attention. And as learning experiences go, someone showing you something is drastically less effective than trying to do it, even when having trouble. You'll be much more receptive to answers after banging your head on a problem a little. We all are.
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.