Devel-PerlySense
view release on metacpan or search on metacpan
t/data/simple-lib/lib/Win32/Word/Writer.pm view on Meta::CPAN
=head2 SaveAs($file, %hOpt)
Save the document to $file (may be a relative file name). %hOpt is:
format => $format -- Save $file as $format (default:
Document). Valid values are: Document, DOSText, DOSTextLineBreaks,
EncodedText, HTML, RTF, Template, Text, TextLineBreaks, UnicodeText
(A common mistake is to inspect the document in another Word instance
when re-running a script. The document will be locked by Word and the
script can't re-create the file.)
=cut
sub SaveAs {
my $self = shift;
my ($file, %hOpt) = @_;
my $format = $hOpt{format} || "Document";
defined(my $formatConst = $self->rhConst->{"wdFormat$format"}) or croak("Invalid format ($format), use Document, DOSText, DOSTextLineBreaks, EncodedText, HTML, RTF, Template, Text, TextLineBreaks, UnicodeText");
( run in 0.689 second using v1.01-cache-2.11-cpan-49f99fa48dc )