|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: joining string contentby Corion (Patriarch) |
| on Jun 24, 2025 at 08:59 UTC ( [id://11165456]=note: print w/replies, xml ) | Need Help?? |
|
Given your code, that's impossible.
Given your code, Perl sees:
... which makes Perl calculate the sum of book, dog and cat, which is zero, because (non-number-looking) strings evaluate to 0 in Perl. Can you show us a complete, runnable example of the code and data you have that replicates your problem? I think you want something like Text::CSV_XS, if your goal is to produce a CSV file, for example for Excel.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||