Have you read
How do I post a question effectively? and
Writeup Formatting Tips, as have already been suggested to you in your previous posts like
@ ergular expression and
@ Regular Expression? Why are you still appending meaningless '@' to the start of your subject lines? Why are you not wrapping your input in
<code> tags? You have already had at least one suggested solution fail because of this (
Re: @ ergular expression). We are giving you free, valuable advice. Do you think our time is without value? Read and meditate on
http://www.catb.org/~esr/faqs/smart-questions.html. Seriously.
Both your questions are very nearly answered in perlretut. I have given you this link before. Read it. We can help you debug if you post a well-formatted script with input and expected output. What do you mean by "the whole string"? The whole string is already in $row - so store that. And what have you tried for question 2?
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.