Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Excel To Tab Delimited using Spreadsheet::ParseExcel

by Anonymous Monk
on Feb 26, 2015 at 03:27 UTC ( [id://1117898]=note: print w/replies, xml ) Need Help??


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).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found