feud has asked for the wisdom of the Perl Monks concerning the following question:

i have an application (mIRC) running a DDE server and am having success sending information to the server using:
use Win32::DDE::Client; $mirc = new Win32::DDE::Client ('mIRC', 'COMMAND'); $mirc->Poke('filler', "/@ARGV");
unfortunately, now i want to be able to receive information. i know that i need to change the COMMAND in the above code to EVALUATE. unfortunately, again, i have almost no experience in perl, so i'm not quite sure how to set a variable in perl equal to the value returned by the DDE server. any help would be greatly appreciated.

Replies are listed 'Best First'.
Re: perl and DDE
by tachyon (Chancellor) on Oct 14, 2004 at 00:44 UTC

    You may prefer the wrapper layer Win32::mIRC. But anyway you do it like:

    $eval = new Win32::DDE::Client ('mIRC', 'EVALUATE'); $response = $eval->Request('CHANNELS');

    cheers

    tachyon