You need to tell us more. Do you mean something like (pseudo-code follows)
Clearly, there could be some problems here if the word is longer than 4 characters.my @char = split(//,$word); my $value = 0; my $place = 0; foreach revers(@char){ $value += ord($_) * 256 ** $place; $place++; } $value = $value % (256**2);
Or you could try pack and unpack and, of course, Super Search.
emc
At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.
—Igor Sikorsky, reported in AOPA Pilot magazine February 2003.In reply to Re: ascii to binary
by swampyankee
in thread ascii to binary
by Marsel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |