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


in reply to Scalar function

If $fa, $fb, and $fc are file handles, then

print CSV $_, scalar <$fa>, scalar <$fb>, scalar <$fc>;
is doing the equivalent of
my $line_a = <$fa>; my $line_b = <$fb>; my $line_c = <$fc>; print CSV $_, $line_a, $line_b, $line_c;
Note that there is no chomp on the reads from the three files.

--MidLifeXis