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 Chriss Miller 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: *

  • Users: spalmarez
  • Content: Threads
  • Order by date
  1. spalmarez

    Add a new line after a match

    I would like to add a new line after a match. I know I can edit a file doing a perl -pi -e "s/(\d+)\s+\d+-\d\d\d\d)//g" filename which this would replace the phone number with something but can I add a newline after my phone number or how would I do this in a script? The file is huge. here's...
  2. spalmarez

    I am adding elements to hashes but is not working correctly

    Looks like I am adding the same information in my hash when they should have different information. How do I just the the information I need?: 14014126,80321.1 14014126,80319.1 14014126,80172.1 13996815,81667.1 13996815,81630.1 13996815,81632.1 13996815,81678.1 13996815,81668.1 Here is my sub...
  3. spalmarez

    How can I compare Values from a Hash

    I am trying to get the lowest value from my dtt value. I have multiple mcc's. How can I achieve this? Here is my list: MOD,MCC,DTT 13976465,80492.1, 65535 13976465,81402.1, 21600 13976417,80664.1, 65535 13976417,80431.1, 800 $hash{$key}{mcc}{$mcc}=$mcc; $hash{$key}{mcc}{$mcc}{dtt}=$dtt;

Part and Inventory Search

Back
Top