in reply to Converting .doc files to .pdf using perl

system('unoconv', '-f', 'pdf', 'yourfile.doc') and die "Can't launch unoconv: $!";

Replies are listed 'Best First'.
Re^2: Converting .doc files to .pdf using perl
by Anonymous Monk on May 12, 2011 at 22:41 UTC

    It came up with the following error when I executed the above code.

    system('unoconv', '-f', 'pdf', 'yourfile.doc') and die "Can't launch unoconv: $!";

      You need to install unoconv first. Take a look here. That line of code is just a system call - I guess a little "tongue in cheek" because you asked for a pure Perl solution...