When I substitute for a line to remove it <br><br>s/blah*_\*blah\//;<br><br>I am still left with white space in empty lines. Is it possible to remove the string anf the line. <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>
I need to match a chunk of data that covers more than 1 line. I've tried using the //m option but I can't get it to work. The data I want to get is in the form:-<br><br> (net (rename bypass...
I'm moving control into a file and then I need to copy the file with extension edn to a new file. So, in Unix I would simply <br> cp *.edn arbit.edn<br><br>but system won't let me do that. I would like to keep the file name but it...
I would maybe spend less time clogging up this poor website with my simplke questions if I had a list of the match operators and what they do. Does anyone know where I can get one?<br><br>Thanks <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>
Okay, so I want to output this list of data into a file.<br><br>while(<INPUT_FILE>)<br>{<br> #do various parsing<br><br> open (OUT_FILE, ">$params"); #open params.opt...
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...
I have two variables in memory and I want to output them to a new file called type.opt . One is a string and the other is a value. They are in a loop and change with each transition. They have to be output in the style<br><br>string1=value1 #loop...
I see what you mean with the split function but how can I pick out this line from a file with various information (no lines the same as this one though) and make it $My_string??<br><br>Thanks Andy <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= >...
I need to get the two numbers from this line immediatley followed by ns (ie the 5.678 & 7.908)<br><br>DAMN "I_DONT_KNOW_PERL" WELL = 23 nS AS ¦ 5.678ns ¦ 7.908ns ¦ 7<br><br>Cheers<br><br>(sorry if...
I have three variables $lisa and $sue are strings, and $bob is a value. I want to name a string lisa_sue and assign it the value bob. Is this possible?<br><br>Thanks to anyone who helps - you are a star!! <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a...
Thats it. I want a number to only 3 significant bits ie MHz. <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>
I am trying to extract information from a file. I am trying to match the line but I don't understand all the [/\s+ stuff. Is there a place I can get a simple list of what all the functions do.<br><br>What I am actually trying to do is extract the number from a line which looks like<br><br>NET...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.