The following is a specific example of a general situation I've run into many times:
I am generating an output file and each line has a key associated with it, say the first non-space part of the input file. I mean to have filled a hash with all the possible keys and values associated with all of them, but I've made some mistakes and forgotten to associate values with some of the keys. I run the script, either on a debugger or a terminal, and I get a bunch of "uninitialized" error messages. I then put in a block in my debugger right before the place where I'm running into trouble asking the script to print a value associated with a non-existant key. I hit "run" a few times and let it hang up at the block each time it has looped through a new line. I see no error messages. I then remove the block and let the script run to the end, and I still see no error messages. If I then look in the output file, the places where I tried to print values associated with non-existant keys are blank, as they should be, but I now have run the whole script without getting any error messages. I've done this many times using both Komodo or Affrus debuggers (Mac OSX). Does anyone know why this happens?
Thanks.
Eric
I am generating an output file and each line has a key associated with it, say the first non-space part of the input file. I mean to have filled a hash with all the possible keys and values associated with all of them, but I've made some mistakes and forgotten to associate values with some of the keys. I run the script, either on a debugger or a terminal, and I get a bunch of "uninitialized" error messages. I then put in a block in my debugger right before the place where I'm running into trouble asking the script to print a value associated with a non-existant key. I hit "run" a few times and let it hang up at the block each time it has looped through a new line. I see no error messages. I then remove the block and let the script run to the end, and I still see no error messages. If I then look in the output file, the places where I tried to print values associated with non-existant keys are blank, as they should be, but I now have run the whole script without getting any error messages. I've done this many times using both Komodo or Affrus debuggers (Mac OSX). Does anyone know why this happens?
Thanks.
Eric