Thanks for the reply guys but I guess I didn't make my self very clear, so I will try again. I get a string from the array:  $item_line[$head_count] = $item_line[$head_count] . $& . $'; Which I have no idea what it is. From this screen I am already taking out "score". I know this word will always be first. The next word which should be the first word now is unknown. It does have to be all capital letters with the option of numbers and an underscore. This is the word that I don't want the users to see when they go to modify the scores. Example of how it looks in the file: score SOME_WORD 3.0 3.0 3.0 3.0 How I want it to look to the user in the web page: 3.0 3.0 3.0 3.0 I'm not doing $sting = "score SOME_WORD 3.0 3.0 3.0 3.0" so the /^(\w+) isn't working. Once the score has been modified and they hit submit I need to be able to put SOME_WORD back into the file. Currently I'm doing it like this:
my $t = -1; while ($t++ <= $line_count) { if ($item_line[$t] ne "") { print FILE "$score$item_line[$t] ##$score = score and $item_line[$t]= SOME_WORD 3.0 3.0 3.0 3.0(for thi +s example) \n\n"; } }
I hope this makes more sence, if not I'll try again Thanks

In reply to Re: Re: take out section of a string then put it back by mr_evans2u
in thread take out section of a string then put it back by mr_evans2u

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.