I need a program to send and receive data (with real time updates) to an open Excel spreadsheet that would receive data via DDE links from other servers (Excel is too stupid to do what I want).

It seems that Perl can do anything, so I thought I would examine its suitability first. :)

I found a module called Win32::OLE, but it appears to only make Perl function as a DDE client (if I understood the documentation - certainly a dubious assumption).

Random questions:

1. Do modules exist to do this, and if so, which ones?

2. Does anyone have or know of any example code I could use as a starting point?

3. I have written a few (small and simple) Perl programs on Linux, but I would do this on Windows (I have Cygwin installed). Any thoughts or caveats specific to Cygwin?

4. (separate, but related, even if a little theoretical) - Can I write a DDE client in Perl to grab ANY data that I could get in Excel? 4a. Would a DDE server restrict its data to Excel only, or could any program receive it (with the right syntax)?

Thank you for your wisdom.


In reply to DDE Server? Client? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.