That's not portable. You should use binmode on your handles.
Also, <BAR> could return an arbitrary long line. You can limit the size of that line using $/ = \4096;.
In reply to Re^2: How can I concatenate two files?
by ikegami
in thread How to concatenate the contents of two files?
by yankeeblue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |