Did you actually try it?
I realise that Body may be described as an attribute in the OLE documentation for Outlook, but the error message certainly imples that it ends up being implemented as a method within Win32::OLE.
The error message is pretty indicative.
{
my $s = 'the quick brown fox';
sub Body{
($s) = @_ if @_;
$s
}
}
print Body();
the quick brown fox
Body = 'fred';
Can't modify non-lvalue subroutine call in scalar assignment at (eval
+3) line 1, at EOF
Body( 'fred' );
print Body();
fred
If you did try it, what error message did you get from the attempt?
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!
|