in reply to reading asp session variables in a perl script

I noticed a lot of misconceptions about perlscript in ASP pages in previous responses to your question. The answer is quite simple:
#Assuming you have set the LOGINNAME session var somewhere, $loginname = $Session->{LOGINNAME};
The $Session object is a pre-defined (intrinsic) object, if you are running inside an ASP page. This is the SAME object you would access if your ASP page used VBSCRIPT.

For ASP programming with perl, see
http://aspn.activestate.com/ASPN/docs/ActivePerl/Windows/ActiveServerPages.html