Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


How to pass a variable from ASP to Perl

Posted on 2004-10-28
Medium Priority
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
Question by:erenshte
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 13

Accepted Solution

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;

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Suggested Courses

636 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