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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wierd hanging behavior

Status
Not open for further replies.

neiljones

Programmer
Joined
Jul 8, 2006
Messages
2
Location
GB
I have a moderately large and involved script which has suddenly and inexplicably decided to do absolutely nothing. I run it and it just hangs. I am running it over an SSH connection to a server. When I run it I find that I can actually type stuff
on the screen ( when it is not designed to take any input at all) and that CTRL C will stop it.

Putting as the first executable line a simple print statement produces nothing.
However cutting out the first few lines and pasting themto a new program gives a program that runs perfectly.
What on earth is causing this. Here are the lines that work.


print "hello";
open( IN, "datas2.txt" ) || die "cannot open for reading: $!";
@datalines=<IN>;
close(IN);
$pcount = 0;

print "##################################################################################################";
 
well.. without seeing anything other than the working code who knows.. but you should go through it one line at a time and add debug statemetns.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top