mr_evans2u has asked for the wisdom of the Perl Monks concerning the following question:
elsif ($temp =~ (m/^score/i)) { $item_line[$head_count] = $item_line[$head_count] . $& . $'; $item_line[$head_count] =~ s/score //g; ##### need something to parse out unknow word in string here. $head_count ++; $item_count = 0; } ##### writing the file ############### while($a<=$ttl) { $line_count = 0; $write_header = $tmp_headers[$a]; $write_if = $if[$a]; $write_action = $act[$a]; # Write Section Header print FILE "$write_header\n"; # Write If information print FILE "$write_if\n"; # Create item list for the individual section write_items($tmp_headers[$a]); my $t = -1; #### need to put parsed section of string back between $score and $ite +m_line while ($t++ <= $line_count) { if ($item_line[$t] ne "") { print FILE "$score$item_line[$t]\n\n"; } } $a++; }#end while
janitored by ybiC: Balanced <code> tags around code block, as per Monastery convention
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: take out section of a string then put it back
by davido (Cardinal) on Sep 13, 2003 at 20:59 UTC | |
by mr_evans2u (Novice) on Sep 15, 2003 at 15:05 UTC | |
by davido (Cardinal) on Sep 15, 2003 at 16:43 UTC | |
|
Re: take out section of a string then put it back
by bradcathey (Prior) on Sep 13, 2003 at 20:04 UTC | |
|
Re: take out section of a string then put it back
by Not_a_Number (Prior) on Sep 13, 2003 at 20:15 UTC |