http://www.perlmonks.org?node_id=1003671


in reply to How to concatenate N binary buffers?

. is the concatenation operator. Rather than writing 2 * $bufsize, remember how much you have read:
my $size1 = sysread $in1, my $buf1, $bufsize;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ