When it hangs again, just give it a ctrl/c and see where it carps from.#! use Carp; use strict; use warnings; $SIG{INT}=\&CtrlC; sub CtrlC { $SIG{INT}=\&CtrlC; Carp::carp('Caught a CTRL/C'); }; sub mySub { for (1..10) { <STDIN>; }; }; for (1..10) { <STDIN>; }; mySub(); exit;
In reply to Re^3: Perl suddenly pauses for key input
by clueless newbie
in thread Perl suddenly pauses for key input
by KHLeow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |