in reply to die function

This is documented in 'die' in perldoc,
If the last element of LIST does not end in a newline, the current script line number and input line number (if any) are also printed, and a newline is supplied.
i.e., this is expected and documented, that is why it is happening.