They are very useful in debugging programs as they will tell you the current file that is being interpreted (eg the perl file), and what line number you are currently at. If you have a custom die message for a module, you can mention
in order to convey as much info to the programmer.