Posted By

amosshapira on 01/13/08


Tagged

error one-liner


Versions (?)

Convert error number to error message


 / Published in: Perl
 

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.

  1. perl -e '$!=X;print"$!\n"'

Report this snippet  

You need to login to post a comment.