in reply to How to call perl CGI script from another perl CGI script

This problem is usually solved by passing a "cookie" to the user with some kind of identifying code or number in it. You'd keep a lookup table of some kind that contained their user information or "session" or whatever else.

I highly recommend CGI::Session for this task. It handles all the mindless tedium for you and provides a familiar API ($session->param("username")) so it drops right into your existing scripts.

I think you might be looking to execute your script with something like LWP or WWW::Mechanize though. You can get this to work, but it'll be a maintenance nightmare in the long run and most likely you'd wish you "did it right in the first place" a few years down the road.

-Paul

Replies are listed 'Best First'.
Re^2: How to call perl CGI script from another perl CGI script
by Calm (Acolyte) on Apr 24, 2007 at 17:17 UTC
    Thanks. I'm taking a look at CGI::Session now.