Error handling in Perl can be achieved using the die function, which terminates the program and prints an error message. For example, when opening a file, you can use die $!; to display the system error message if the file operation fails. Additionally, the eval block allows you to catch exceptions and handle errors gracefully.