Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. DJpennywhistle

    Simple substituting problem.

    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&nbsp;&nbsp;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>
  2. DJpennywhistle

    matching more than one line

    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>&nbsp;&nbsp;&nbsp;(net (rename bypass...
  3. DJpennywhistle

    I need to name an @ARRAY using a @VARIABLE

    I want to make an array every time I have a list of data separated by commas. So I...
  4. DJpennywhistle

    I need to use the unix * operator and system won't let me

    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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cp *.edn arbit.edn<br><br>but system won't let me do that. I would like to keep the file name but it...
  5. DJpennywhistle

    Does anyone know where I can get a list of match operators?

    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>
  6. DJpennywhistle

    SIMPLE MATCHING PROBLEM

    I need to match the first value of a list which looks like string = string/value. So I use the simple code...
  7. DJpennywhistle

    OUTPUT DATA TO FILE - STILL WON'T WORK!!!!

    Okay, so I want to output this list of data into a file.<br><br>while(&lt;INPUT_FILE&gt;)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#do various parsing<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;open (OUT_FILE, &quot;&gt;$params&quot;); #open params.opt...
  8. DJpennywhistle

    WHAT DOES /= MEAN??

    simple as that <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>
  9. DJpennywhistle

    OUTPUT DATA TO FILE - SIMPLE PROBLEM

    I am parsing a data file for parameters in an if loop. Something like:<br><br>if($file_line_starts_with_input)<br>{<br>&nbsp;&nbsp;&nbsp;#get first string as $value1<br><br>&nbsp;&nbsp;&nbsp;#get first value as $value2<br>}<br><br>I want to output these to a file called params.opt. So, inside my...
  10. DJpennywhistle

    I need to output values to a new file....

    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&nbsp;&nbsp;&nbsp;#loop...
  11. DJpennywhistle

    Andybo - How do I make the info $My_string

    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= >...
  12. DJpennywhistle

    REGULAR EXPRESSIONS - easy for a master

    I need to get the two numbers from this line immediatley followed by ns (ie the 5.678 & 7.908)<br><br>DAMN &quot;I_DONT_KNOW_PERL&quot; WELL = 23 nS AS ¦ 5.678ns&nbsp;&nbsp;&nbsp;¦&nbsp;&nbsp;&nbsp;7.908ns&nbsp;&nbsp;&nbsp;&nbsp;¦&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7<br><br>Cheers<br><br>(sorry if...
  13. DJpennywhistle

    NAMING in Perl

    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...
  14. DJpennywhistle

    I want a value 134.45678MHz in only MHz - can perl do it?

    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>
  15. DJpennywhistle

    REGULAR EXPRESSIONS - extracting data from a file

    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...

Part and Inventory Search

Back
Top