in reply to VBA to Perl

AFAIK this should also work:
$Word->Selection->{Text}="This is the inserted text";