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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by hbkid

  1. hbkid

    pattern matching for floating numbers

    How do I find numbers in a line and multiply it by 1000, the numbers could be floating eg: create_clock -name "CLKBLK" -period 64.000 -waveform {0 32} I want to change this to create_clock -name "CLKBLK" -period 64000 -waveform {0 32000} Is there in perl to do a pattern match for a number. I...
  2. hbkid

    Reading and writing simultaneously to a file

    Sorry, I may have over simplified the problem.. What I do have is a hash and I need to install the 2 values in the hash after line x depending on the if condition below. The code I have so far. open (OUT, "+<$out_file") || die "Cannot open output.txt"; while (defined ($line = <OUT>)) {...
  3. hbkid

    Reading and writing simultaneously to a file

    I'm trying to read and write to a file at the same time. I used open ( FILE, +<$file_name) to make $file_name both readable and writeable. I basically want to replace x y z in the file with x a y z When I tried doing this with an algorithm that works like this if $line = /x/ print FILE a...

Part and Inventory Search

Back
Top