in reply to Re: xor encrypt-decrypt routine
in thread xor encrypt-decrypt routine

Ahh, that did the trick. I simply changed the loop to:
for my $i (0..(length($_) -1)) { ...
and it worked like a charm. I'm not running Windows so I didn't get bitten by any carrige returns. Thanks!