Re: [iavian] Use of uninitialized value in string eq at /usr/local/lib/perl5/site_perl/5.6.1/Spreadsheet/ParseExcel.pm line 310
[In reply to]

Can't Post

The error (a warning really) is coming from the ParseExcel module. Evidently a variable being processed by the module has no value when used with the string operator "eq" and the warning gets displayed. Sometimes warnings are inevitable but cause no problems, sometimes they alert you to a situation that needs fixing. No way to tell from what you have posted. -------------------------------------------------

error when i execute as below: ---------------------------------- /export/home/iavian/ >perl test_parse_excel.pl test.xls Use of uninitialized value in string eq at /usr/local/lib/perl5/site_perl/5.6.1/Spreadsheet/ParseExcel.pm line 310. Can't call method "numify" without a package or object reference at /usr/local/lib/perl5/site_perl/5.6.1/OLE/Storage_Lite.pm line 1329.

Re: [iavian] Use of uninitialized value in string eq at /usr/local/lib/perl5/site_perl/5.6.1/Spreadsheet/ParseExcel.pm line 310
[In reply to]

Can't Post

I can't tell by looking at your code, you can see those warnings are coming from the modules your script uses, not from your script, and they are warnings, not errors. I hve never used the Spreadsheet::ParseExcel module so I have no idea how good it is or how to use it. Are you passing a valid filename into the script on the command line? Try just this for right now:

If you're not familiar with applying patches, this one is simple enough to make by editing S::PE directly, changing the existing line 310 (prefixed with a - above) to a fixed version (prefixed with a +). --k.