in reply to Spreadsheet::WriteExcel Write through scalar variable
Is there maybe whitespace at the end of $txt? The chomp removes one newline character at the end, but maybe the cell value contains \r\n and not \n. Try printing out the value using Data::Dumper:
use Data::Dumper; $Data::Dumper::Useqq= 1; $txt= "foo\r"; print Dumper $txt; # $VAR1 = "foo\r";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Spreadsheet::WriteExcel Write through scalar variable
by DVCHAL (Novice) on Oct 31, 2013 at 08:48 UTC | |
by Corion (Patriarch) on Oct 31, 2013 at 10:24 UTC |