?
Solved

How to pass a variable from ASP to Perl

Posted on 2004-10-28
3
Medium Priority
?
145 Views
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 "(myperl.pl?'objectisnotfound'")

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

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

Accepted Solution

by:
gripe earned 200 total points
ID: 12435326
If you use the CGI.pm 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;
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

601 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