arcnon has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl $/=\1;while(<>){$c=($c<<1)+($c>>31)+($x>>2==3?0:ord);$x++}printf"%x",$ +c
I have fuddled with this trying to figure out exactly what is happening but I am at a loss.
UPDATED QUESTION
I orignally thought that if I could understand the script I could rewrite it as a sub that I could pass my $buffer and get back a hex representation and the actual result that I could write back into the file BUT my attempts have failed. Could someone lend me a hand, give me some tips, grant a miracle(make me perl omniscient :) ). thanks again for your time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: please explain this script
by Abigail-II (Bishop) on May 28, 2004 at 13:38 UTC | |
by El Linko (Beadle) on May 28, 2004 at 13:54 UTC | |
by arcnon (Monk) on May 28, 2004 at 15:25 UTC | |
by arcnon (Monk) on May 28, 2004 at 15:32 UTC | |
by davido (Cardinal) on May 28, 2004 at 15:45 UTC |