Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Just another Perl shrine
 
PerlMonks  

Re: Strange crash - any ideas?

by Roger (Parson)
on Oct 19, 2003 at 22:20 UTC ( [id://300456]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 19, 2003 at 22: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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://300456]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.