print returns false and sets $! on failure.
In reply to Re^3: Print inside SIGNALS by ikegami in thread Print inside SIGNALS by pedrete