Saved Bookmarks
| 1. |
What is the role of warn function in the error handling of Perl? |
|
Answer» The warn function enables the PROGRAMMER to RAISE a WARNING MESSAGE that gets printed to STDERR but does not take further action. It is very USEFUL when Perl programmers want to print a warning message for the user plus proceed with the remaining operations − chdir('/home') or warn "Unable to change to this directory "; |
|