Example of a perl callback with send()
    Gary Mills 
    mills at cc.umanitoba.ca
       
    Mon Apr  2 15:30:01 EDT 2007
    
    
  
The Cyrus::IMAP perl library describes send() this way:
       $client->send(\&callback, \&cbdata, $format, ...);
However, none of the examples I could find uses the callback and
callback data arguments.  Does anybody have an example of how
these are used.
I'm designing a perl script that makes several IMAP connections to
the server, to send long-running commands in parallel.  In this case,
the script can't block on a send().  It needs to issue all of them
and then poll for results.  I'm assuming that a perl callback along
with processoneevent() will make this possible.
-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-
    
    
More information about the Info-cyrus
mailing list