roadtest has asked for the wisdom of the Perl Monks concerning the following question:
Inside an solaris utility(change x86 hostid), there is some perl code as following:
echo "0x0ddb00b5" | /usr/bin/perl -e 'print("\""); while(<STDIN>){chop +;tr/!-~/P-~!-O/;print $_;} print("\"\n"); exit 0;'
What is the "tr/!-~/P-~!-O/" doing? I have difficulty to find the explanation.
Thanks in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: what is the translation?
by BrowserUk (Patriarch) on Jul 20, 2011 at 03:23 UTC | |
by Albannach (Monsignor) on Jul 20, 2011 at 04:35 UTC | |
by roadtest (Sexton) on Jul 20, 2011 at 13:17 UTC | |
|
Re: what is the translation?
by Khen1950fx (Canon) on Jul 20, 2011 at 05:10 UTC | |
by jwkrahn (Abbot) on Jul 20, 2011 at 06:48 UTC | |
by roadtest (Sexton) on Jul 20, 2011 at 13:20 UTC | |
by MidLifeXis (Monsignor) on Jul 20, 2011 at 13:33 UTC | |
|
Re: what is the translation?
by jwkrahn (Abbot) on Jul 20, 2011 at 06:52 UTC | |
by roadtest (Sexton) on Jul 20, 2011 at 13:22 UTC |