[thelist] Accessing URL variables in perl

CDitty mail at redhotsweeps.com
Sun Apr 7 23:36:01 CDT 2002


How do I access a url variable in perl?  I know that in perl, you can
pretty much write your own routines for everything.  But I am justa learning.

I found this routine in a google search, but have a question on how to
access the needed variables.
@values = split(/&/,$ENV{'QUERY_STRING'});
foreach $i (@values) {
     ($varname, $mydata) = split(/=/,$i);
}

If I use this routine, and use url variables called hid & hid2, how would I
access each variable?

Thanks

Chris




More information about the thelist mailing list