in reply to Strange crash - any ideas?

Question 1 - is "/A/sub/$strTName" a file? If so, you probably need to open it with open ASUBFILE, "</A/sub/$strTName".

Question 2 - is $strTName defined? Try to insert a print statement and print out the $strTName variable.

Question 3 - Why is there a reference to $strTickerName, not $strTName?

The behaviour you have described happens most likely when you read past the end of the file, which happened to me a few times in the past.

If you are running the script under Unix environment, you could try out the execellent 'ddd' debugger. Which does a good job at debugging perl scripts.

Replies are listed 'Best First'.
Re: Re: Strange crash - any ideas?
by AssFace (Pilgrim) on Oct 20, 2003 at 02:30 UTC
    Q1) Yes, it is a file. For just plain reading in of a file, I have always just left it as is and it has worked. I made the change that you pointed out and it still fails.

    Q2) I posted up another node on here that shows a chunk of the code that is having the issue. The first time through the loop, the $strTName is defined and outputs, the second time through the loop, it doesn't appear to be defined. Where is it getting killed?

    Q3) The $strTickerName is what it is called in my code - I was trying to shorted the names that I had posted so that it wouldn't line wrap as much and be easier to read - I just missed the one there in my haste to try to post it - I went back and changed that.

    There are some odd things afoot now, in the Villa Straylight.