in reply to Not A Rockstar File Manipulator Today

Oh and the capital S on my s/pat/rep line is a typo, not actually in my code

So you're asking us to fix a problem in code we haven't seen? Don't do that. Show us the code you tried, or try the code you're going to show.

  • Comment on Re: Not A Rockstar File Manipulator Today

Replies are listed 'Best First'.
Re^2: Not A Rockstar File Manipulator Today
by koolgirl (Hermit) on Nov 15, 2008 at 01:30 UTC

    No, I didn't re-type the code, you are looking at the code I'm using, when I pasted, I realized the typo, which was also in my code, but when I changed it, with high hopes of course that I wouldn't even need to ask because I had found the problem, and it made no difference either way, I just forgot to change it on the posted code as well. I am a newbie, as I'm sure all can see, and retarded in many areas, but give me some credit, I can cut and paste :p ;)

    Thanks for the responses on debugging, though...I swear I'm having the hardest time with that part...

      Thanks for the responses on debugging, though...I swear I'm having the hardest time with that part...

      Welcome to the wonderful world of programming. Debugging is usually the hardest part. When debugging, one of the most useful techniques I've found is to verify the pieces that I know beyond a shadow of a doubt are right. Quite often they are not and debugging the rest of the code won't get you anywhere.

      Several of the other responses suggest adding print statements to show what is happening. Have you done this? Don't skip one because you know it's right.

      G. Wade