- or download this
use Win32::OLE;
my $dict = Win32::OLE->CreateObject("Scripting.Dictionary");
$dict->Count(); # how many Items
$dict->Add( $key, $value);
my $val = $dict->Item($key);
- or download this
use Win32::OLE;
use MooseX::Declare;
...
my $dict = Dictionary->new(Win32::OLE->CreateObject("Scripting.Diction
+ary"));
$dict->Add($key, $value);
- or download this
package MyOleTypeLib;
...
has '_DictObj' => (
isa => 'Dictionary',
...
- or download this
class Dictionary {
...
...
method set_text (Str $newtext) {
return _DictObj->SetFile(1, $newtext);
}
- or download this
my $text = $moose_dict->text;
$moose_dict->text($newtext);