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>
No - actually it doesn't give me the whole of the file - it doesn't actually give me anything different.<br><br> $& = (net (rename bypass "bypass")<br><br><br>sorry goBoating first time you haven't sorted it for me first time!!!<br><br>Thanks anyway. <p>Gordon...
I forgot to mention that the last line mentioned is not the end of the file - will the .* not give me the whole of the remaining file? <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>
...bypass is a variable. So I've used the match:-<br><br> if(/\(net\s*\(rename\s* $useful/)<br><br>to match the first line where $useful has the value bypass but I need to match the whole damn lot so I can operate on...
I think I've got it sussed - I don't kno7w exactly wh+at I was doing wrong must havfrtye beeeeen \a typo somewhire.<br><br>thanks anyway guys!!! <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>
i had used <br><br>system("cp *.edn arbit.edn");<br><br>that is the complete line. <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>
...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 is not that important but I do need to make the...
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>
Its cool. I worked out how to do it using an array.<br><br>Thanks once again though <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>
Thanks again Andy pity I can't give you something back my Perl's not great - having any trouble with your golf swing? <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>
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 would try effectiveperl.com but to be honest you would be best to learn some simple Unix first as Perl is very much based on Unix. <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>
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.