ole,Automation and perl

  • פותח הנושא jbu
  • פורסם בתאריך

jbu

New member
ole,Automation and perl

אני כבר משתגע מרוב חיפושים באיטרנט, אני מנסה להבין איך אני יכול להשתמש ב-Automation בפרל. אני יסביר,לא מזמן קיבלתי בקורס קוד כזה:
# # Uses COM Automation to send mail from Perl. # # # Use the OLE module provided with the # ActiveState Perl distribution. # use OLE; use Win32::OLE::Const ( 'Microsoft Outlook' ); # # Create the application object. This starts Outlook, if # it isn't already running. # $application = CreateObject OLE 'Outlook.Application' || die $!; # # Create a new item to send. # $myitem = $application->CreateItem( olMailItem ); # # Add recipients using the Recipients->Add method # $myitem->Recipients->Add( "CzJz\@Hotmail.com" ); # # Set the values for the Subject and Body properties # $myitem->{ 'Subject' } = "Message from Perl" ; $myitem->{ 'Body' } = "This message was sent from Perl.\n-- Carl-Josep +h" ; # # Send it using the Send method. # $myitem->Send;​
והתחלתי להסתקרן עם המודל (שלדעתי הוא נהדר) OLE, אבל אני מנסה להבין איך אני יכול לדעת איך לדבר עם פונקציות שאני קורא להם? איפה זה כתוב? אשמח לקבל תשובה.
 

Zack DA

New member
הוא יסביר.

היא תסביר. אנו נסביר. אני אסביר. לא יסביר.
 
למעלה