in reply to Re^2: Excel To Tab Delimited using Spreadsheet::ParseExcel
in thread Excel To Tab Delimited using Spreadsheet::ParseExcel

use the option that is documented to stop doing that :) (hint, read the "f"riendly docs)
  • Comment on Re^3: Excel To Tab Delimited using Spreadsheet::ParseExcel

Replies are listed 'Best First'.
Re^4: Excel To Tab Delimited using Spreadsheet::ParseExcel
by Anonymous Monk on Feb 26, 2015 at 16:03 UTC
    I removed 3 lines from the script and it is working. The first 2 -
    $value =~ s/^\s+//; $value =~ s/\s+$//;
    , I understand, strips off spaces from beginning and end. The third line I removed
    $value = " " if $value ne "0" && !$value;
    , what does that do? I wanted to ensure I did not remove a line that 'should' be in there.
      $value = " " if $value ne "0" && !$value; what does that do?

      The code means: Set $value to " " if "$value" is something other than the string "0" (Equality Operators) and also $value is false (Truth and Falsehood).