in reply to How to prevent perl from being clever
will get you an array with (0x31) in it. If you do the same to $b you can then add them together byte by byte in parallel, ensuring that no single value is greater than 255. When you are done:my @bytes = unpack "C*", $a;
will give you a single string. Of course, this string is likely to be fairly un-terminal-able. {grin}my $result = pack "C*", @newbytes;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|