Hallo, I tried to show Word documents in the browser in a way that the real path isn't shown. So a Perl script such as:

use MIME::Base64 qw(encode_base64); if (open (INHOUD, "$regel")) { binmode INHOUD; $bufsize = 60*57; print << "EOT1"; MIME-Version: 1.0 Content-Type: text; boundary="_----------=_10167391557129230" --_----------=_10167391557129230 Content-Transfer-Encoding: base64 Content-Type: application/msword; filename="bw051122.doc" EOT1 while ($bufsize == 60*57) { read (INHOUD, $buffer, $bufsize); print encode_base64($buffer); }; close (INHOUD); print <<"EOT6"; --_----------=_10167391557129230-- EOT6 }

And so please help me. Do you have a question I'm willing to answer, if I know the answer.
Greetings, Ernst Verster

Edit: g0n - code tags

Edit: porterjohn - moved main content out of signature div


In reply to Showing Word document in browser by Ernst

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.