DJpennywhistle
Programmer
I am parsing a data file for parameters in an if loop. Something like:<br><br>if($file_line_starts_with_input)<br>{<br> #get first string as $value1<br><br> #get first value as $value2<br>}<br><br>I want to output these to a file called params.opt. So, inside my if loop I used <br><br>$params = "param.opt";<br><br>open (OUTPUT, ">" . $params);<br><br>print OUTPUT ("$value1=$value2\n"
;<br><br>but as you, being better at perl than me, will know the lines over write each other giving:<br><br>### start of file #####<br>last_value1 = last_value2<br><br>### end of file ########<br><br> I want them to follow each other in a list so all parsed data can be used.<br>can anybody help me??<br><br>thanks <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>