woland99 has asked for the wisdom of the Perl Monks concerning the following question:
It's a newbie-ish question. I know how to use OLE to manipulate Excel file (read/write/format etc). I wrote bunch of custom scripts to use Excel to populate text file (eg. program data) or vice versa.
What I want to do is take one Excel file (not very human readable) and use to populate another simple, human-readable file - and I want to be able to control that population process by the set of simple "rules".
E.g. take column A from a worsheet "Input" and put it as column K on worksheet "Output" - but make sure that rows are sorted the same way (say - values in column B on "Input" wsheet and column M on "Output" wsheet must match).
I could hardcode the whole thing or even write a small set of rules following some grammar and code to parse them. But I do not want to rediscover America. How does one do it in a generic way? I would still like to control the population via some set of rules so that I can easily adjust process if format of input or output changes.
|
|---|