in reply to OLE Visio syntax problem
This is essentially what you are trying to do:
use strict; use warnings; use 5.010; sub greet { say 'hello'; } greet() = 10;
Does that make any sense?
You probably need to do something like:
my $href = { visCharacterColor => 2, }; vsoChars->CharProps($href);
In perl, often times the getter and setter will be the same function--if the function has an argument, it will set the value; and if the function is called with no argument, then it will return the value. Check the docs to see what type the argument to CharProps() should be.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: OLE Visio syntax problem
by cr8josh (Sexton) on Jun 02, 2011 at 04:50 UTC |