gon770 has asked for the wisdom of the Perl Monks concerning the following question:
I am having trouble with new lines (\n). It seems like everything within scalar will print new line. For instance,
$_ and $fa
$fb
$fc
But, I want it to be $_ $fa $fb $fc in same line.
Should I try different function? Or there is an optional augument for scalar function? Thank you
while(<$fi>){ chomp; print CSV $_, scalar <$fa>, scalar <$fb>, scalar <$fc>; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scalar function
by MidLifeXis (Monsignor) on Sep 07, 2012 at 17:11 UTC | |
|
Re: Scalar function
by johngg (Canon) on Sep 07, 2012 at 22:45 UTC | |
|
Re: Scalar function
by philiprbrenan (Monk) on Sep 07, 2012 at 16:57 UTC |