I can replicate that the first snippet doesn't seem to output anything.
Since you killed the process instead of letting it exit cleanly (e.g. using die or exit), it didn't get to flush its buffers.
In reply to Re^3: Print inside SIGNALS
by ikegami
in thread Print inside SIGNALS
by pedrete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |