Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Scalar function

by MidLifeXis (Monsignor)
on Sep 07, 2012 at 17:11 UTC ( #992351=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Scalar function
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992351]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2015-07-07 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls