in reply to Absolute simplest way to keep a database variable persistent?
The sticking point that blocks a direct implementation of the type of solution you would best like is that Perl blesses references to turn them into what amount to objects. WordNet::QueryData->new() returns a blessed object and that blessed state is what is difficult to persist in the manner you wish.
There may be another solution though. Perl is pretty good at driving OLE. In fact VB can generally be translated to Perl without too much trouble (after a little experience anyway). If your VBA script doesn't need much UI then it may be possible to turn things inside out a little and drive Excel from Perl to get the work done. Win32::OLE is the place to start exploring this option.
Another way you may be able to go about it is to have Perl manipulate your Excel files directly. Again, there is a fair amount of support for that in CPAN.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Absolute simplest way to keep a database variable persistent?
by natestraight (Novice) on Oct 04, 2008 at 13:46 UTC | |
|
Re^2: Absolute simplest way to keep a database variable persistent?
by dragonchild (Archbishop) on Oct 04, 2008 at 20:49 UTC | |
by natestraight (Novice) on Oct 06, 2008 at 13:50 UTC | |
by dragonchild (Archbishop) on Oct 07, 2008 at 13:04 UTC | |
by natestraight (Novice) on Oct 08, 2008 at 01:55 UTC | |
|
Re^2: Absolute simplest way to keep a database variable persistent?
by natestraight (Novice) on Oct 08, 2008 at 02:00 UTC |