in reply to die function

Why aren't you reading the documentation? perldoc -f die

Tutorials: How-to read the documentation