Die function is a kind of warning that leads an exit call. Which means it immediately terminates the execution in case of error occurrence.

BY Best Interview Question ON 13 Jan 2019

Example

chdir('/etc') or die "Can't change directory";