Sounds like a buffering issue. Perl buffers the output of commands (i.e. print statements using STDOUT) automatically, but (as I recall) error messages (using die which prints to STDERR) come out as soon as possible. Try using:
$| = 1;
after the use strict; and see what comes out.
----Asim, known to some as Woodrow.
In reply to Re: Does die() change the order of execution?
by Asim
in thread Does die() change the order of execution?
by lo_tech
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |