in reply to Does die() change the order of execution?
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.
|
|---|