Convert error number to error message

/ Published in: Perl
Save to your folder(s)

Sometimes you can find error numbers in log files from various programs or even the kernel. This one-liner can be used to convert the error number into a meaningful message. "X" is the error number.

Copy this code and paste it in your HTML
  1. perl -e '$!=X;print"$!\n"'

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.