Perl debug hanging

J

jennykelly

Hi

The perl debugger is hanging at the following line:

while($line = stdin()) {

For some reason it doesn't seem to like stdin (this is someone elses
code btw, and they can't figure it either)

I can run the program no problem - the input and output is fine.

Any ideas?
 
P

Paul Lalli

Hi

The perl debugger is hanging at the following line:

while($line = stdin()) {

For some reason it doesn't seem to like stdin (this is someone elses
code btw, and they can't figure it either)

I can run the program no problem - the input and output is fine.

Any ideas?

Yes. You did something wrong.

Unfortunately, you have given us absolutely no way of determining
*what* you did wrong. What, precisely, is meant by "hanging" in this
case? How is this stdin() function defined? What does the subroutine
do? Is it asking for user input? Did you provide any user input?

Please read the posting guidelines for this group, and then follow
them. Specifically, provide a short-but-complete script that
demonstrates the problem you're encountering, and that we can run by
copy and pasting.

Paul Lalli
 
J

John W. Krahn

The perl debugger is hanging at the following line:

while($line = stdin()) {

For some reason it doesn't seem to like stdin (this is someone elses
code btw, and they can't figure it either)

I can run the program no problem - the input and output is fine.

Any ideas?

It could be related to the fact that perl already uses 'stdin' and it may be
confusing the debugger.

$ perl -le'print for sort keys %::'

[snip]

main::
stderr
stdin
stdout
utf8::



John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top