From: Anupam Varma <anupamove...@gmail.com>
Date: Thu, 6 Sep 2012 10:09:24 -0400
Local: Thurs, Sep 6 2012 10:09 am
Subject: Re: [Spreadsheet::ParseExcel] How to remove white space from cells - Spreadsheet::ParseExcel
I haven't worked on this for some time but I have these in my old script.
my StringVal = $worksheet->get_cell($row, $col));
Copy the below sub at the end of your script.
}
On Thu, Sep 6, 2012 at 9:43 AM, Tanscia <rbmwebmast...@googlemail.com>wrote:
> Hi,
> Thank you for your response.
> I may not have been entirely clear I *do* need to remove the new line
> White space within the string or at the beginning if the string is not an
> On Wednesday, 5 September 2012 16:33:24 UTC+1, Anupam wrote:
>> For white spaces you need to trim the value. Chomp will remove new line
>>> Hi,
>>> I'd really appreciate some help.
>>> I am using Spreadsheet::ParseExcel to search an excel spreadsheet for a
>>> I've created a hash with the data collected from the excel spreadsheet
>>> The problem I have is that the excel spreadsheet has white space mainly
>>> Here's the part of the code which I'm trying to chomp
>>> if ($col == 0 || $col == 4 || $col == 9) {
>>> #Collect hash key and assign to @key array
>>> I've tried
>>> chomp ($key[$row] = $worksheet->get_cell($row,
>>> I can't understand why I can *print $key[$row]->{_Value};* but *chomp
>>> I've basically tried every combination of chomp I can think of but the
>>> Thanks in advance for looking into this one.
>>> Tanscia.
>>> --
>>> For posting and other options visit this group at:
>>> You can also post by sending an email to:
>> --
> For posting and other options visit this group at:
> You can also post by sending an email to:
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||