ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП |
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы. |
19.5 Tips and TechniquesHere are a couple of tips for using OLE automation from Perl. 19.5.1 Translating Samples from Visual BasicFinding documentation and examples that show you how to use an automation server from Perl can be difficult. You'll more likely find examples for Visual Basic. Converting automation examples from Visual Basic to Perl is quite easy. Visual Basic also uses a set Message = ActiveSession.Outbox.Messages.Add Message.Subject = "Subject" Message.Text = "Text" And here's the translation into Perl: $Message = $ActiveSession->Outbox->Messages->Add(); $Message->{Subject} = "Subject"; $Message->{Text} = "Text"; |