Posted on 2006-04-09
Last Modified: 2010-03-04
i recently installed apache webser on win 2K pro

I am trying to run CGI pages...

my scripts terminates
my $document = Win32::OLE -> GetObject($wordfile) || die "canno ";
print "before...............\n";

it does not prints before....
Question by:perlperl
    LVL 10

    Expert Comment

    dont  you have to open the file before printing :-)
    LVL 15

    Accepted Solution

    You have to print out a header before you print to the web page;  there's a couple of ways to do that.

    (1) (preferred method) use the library:

    use CGI qw(:standard);
    print header();

    (2) Print the header directly:

    print "Content-type: text/html \n\n";

    One of these two methods has to occur in your program prior to any other print out.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now