What is a die function in error handling?
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
chdir('/etc') or die "Can't change directory";