|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Weird excel parsing problemby reaper9187 (Beadle) |
| on Nov 05, 2012 at 18:41 UTC ( #1002373=perlquestion: print w/ replies, xml ) | Need Help?? |
|
reaper9187 has asked for the
wisdom of the Perl Monks concerning the following question:
hi people...
Back again to seek you wisdom and guidance on a particularly weird and frustrating problem... SO here goes... I'm trying to compare the elements of an array with each cell of an excel sheet and print the one that matches... i know this looks pretty simple .... But i've been facing a weird problem: when i print the array and the cell individually , i can easily make out the similar values,.. but when i compare the values,the code doesnt seem to realize it .. it jus treats it as a different element(eg it treats 1 and 1 as diff). I've been using strict , warnings and diagnostics.. but none seem to find any error... i've tested the rest of the code.. the trouble some part is given below: Easy enough right ..??? Now there is a another way(comparatively difficult and inefficient ) by means of pattern match but i dont want to go there.. Help please..!! i dnt think its a problem with the files coz i am able to read and print the values perfectly.. its the comparison (for some reason) thats starting to bug me nw ...Any ideas what can cause such a problems ?? THanks.!!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||