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 biv343 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: tkjordantk
  • Content: Threads
  • Order by date
  1. tkjordantk

    ifstream spits out error, but read is working ??

    The following code works as expected. It reads data from the input file into the array and displays the array. The problem is that my error checking mechanism "if(!fin.good())" is executing and I'm not sure why... The file I'm reading from is a simple plain text file (formatted data) with: 5...
  2. tkjordantk

    search and replace ":"

    I've been trying to replace a ":" with "X" using tr. With the code: if ( index( $test_string, ":" ) == -1) { $test_string =~ tr/:/X/; } I'm sort of new to perl, I was thinking that maybe it was a special character, so I tried to using "\", but that didn't work. Any ideas? Thanks.

Part and Inventory Search

Back
Top