G
gcook
Hi,
I've got an old perl program running on my webserver - so old that I
haven't used a perl programmer in about two years (we've gone all php
for a variety of reasons). Anyway, I'm stumbling on a problem that I am
almost certain is a problem with my inputs to the script. The program
has a debug mode that is giving me some very weird results.
Here's what the script does: It takes a spreadsheet like this:
Column1 Column2 Column3
val1 val2 val3
val4 val5 val6
and then one at a time (one per row) builds a url like this:
www.somedomain.com/anotherscript.pl?Column1=val1&Column2=val2&Column3=val3
(i.e. it builds a GET statement with name-value pairs, where name=column
heading and value=value from the cell)
All is well - except I have one spreadsheet where I end up with a bunch
of the values not equalling what is in the spreadsheet, but instead
being set to 'GENERAL'. It seems it hits a specific column, and every
value after that column, for all rows, is set to GENERAL, for all rows.
i.e.
www.somedomain.com/anotherscript.pl?Column1=val1&Column2=GENERAL&Column3=GENERAL
As I said, I'm sure the problem is something bizarre in the inputs, like
a space we're not checking for or something - but the GENERAL value I'm
hoping will tell me where to look.
I don't see the word 'GENERAL' in the script anywhere . Here's the
includes from the top of the script:
use strict;
use CGI;
use CGI::Carp 'fatalsToBrowser';
use Spreadsheet:arseExcel;
use Spreadsheet::WriteExcel::Big;
use LWP::Simple;
use MIME::Lite;
Anyone care to wager a guess or give me a shove in the right direction
as to what might be causing the script to set a value to 'GENERAL'? I
suspect one of the libraries is kicking out the 'GENERAL', but don't
know enough to venture a guess as to which one, or under what conditions.
Thanks!
I've got an old perl program running on my webserver - so old that I
haven't used a perl programmer in about two years (we've gone all php
for a variety of reasons). Anyway, I'm stumbling on a problem that I am
almost certain is a problem with my inputs to the script. The program
has a debug mode that is giving me some very weird results.
Here's what the script does: It takes a spreadsheet like this:
Column1 Column2 Column3
val1 val2 val3
val4 val5 val6
and then one at a time (one per row) builds a url like this:
www.somedomain.com/anotherscript.pl?Column1=val1&Column2=val2&Column3=val3
(i.e. it builds a GET statement with name-value pairs, where name=column
heading and value=value from the cell)
All is well - except I have one spreadsheet where I end up with a bunch
of the values not equalling what is in the spreadsheet, but instead
being set to 'GENERAL'. It seems it hits a specific column, and every
value after that column, for all rows, is set to GENERAL, for all rows.
i.e.
www.somedomain.com/anotherscript.pl?Column1=val1&Column2=GENERAL&Column3=GENERAL
As I said, I'm sure the problem is something bizarre in the inputs, like
a space we're not checking for or something - but the GENERAL value I'm
hoping will tell me where to look.
I don't see the word 'GENERAL' in the script anywhere . Here's the
includes from the top of the script:
use strict;
use CGI;
use CGI::Carp 'fatalsToBrowser';
use Spreadsheet:arseExcel;
use Spreadsheet::WriteExcel::Big;
use LWP::Simple;
use MIME::Lite;
Anyone care to wager a guess or give me a shove in the right direction
as to what might be causing the script to set a value to 'GENERAL'? I
suspect one of the libraries is kicking out the 'GENERAL', but don't
know enough to venture a guess as to which one, or under what conditions.
Thanks!