How to pass a variable from ASP to Perl

Posted on 2004-10-28
Last Modified: 2013-12-25
My asp produces an error if object cannot be found in a database.
This error need to be passed to a Perl script that produces
a Warning window.

I'm thinking to use the following:

if (condition) then
     response.redirect "('objectisnotfound'")

What should I do within the perl script to get this value?

Dr.Roman Erenshteyn
Question by:erenshte
    1 Comment
    LVL 13

    Accepted Solution

    If you use the module (standard module) you can parse out your list of arguments using the param() function.

    so something like:

    use CGI;

    my $q = new CGI;
    print $q->header('text/html');
    if ( $q->param() && ($q->param('keywords') eq 'objectnotfound') ) {
         print $q->start_html("Object not found"),
                $q->h1("Object not found error.");
    } else {
         print $q->start_html("Parameter error"),
                 $q->h1("The parameter you passed was not recognized.");

    print $q->end_html;

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
    Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    931 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

    16 Experts available now in Live!

    Get 1:1 Help Now