I did actually do a dumb on %ENV before posting this message but none of them had a solution that would work. (this is the full list of %ENV that printed out).
SCRIPT_NAME /cgi-bin/server-test.pl SERVER_NAME www.mypage.com SERVER_ADMIN webmaster@mypage.com HTTP_ACCEPT_ENCODING gzip, deflate HTTP_CONNECTION Keep-Alive REQUEST_METHOD GET HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, appli +cation/x-shockwave-flash, */* SCRIPT_FILENAME /home/spyders/public_html/cgi-bin/server-test.pl SERVER_SOFTWARE QUERY_STRING REMOTE_PORT 60118 HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NE +T CLR 1.1.4322) SERVER_PORT 80 HTTP_ACCEPT_LANGUAGE en-us REMOTE_ADDR 66.47.159.11 SERVER_PROTOCOL HTTP/1.1 PATH /usr/local/bin:/usr/bin:/bin REQUEST_URI /cgi-bin/server-test.pl GATEWAY_INTERFACE CGI/1.1 SERVER_ADDR 216.32.90.218 DOCUMENT_ROOT /home/spyders/public_html HTTP_HOST www.mypage.com
As other people mentioned below, $ENV{REQUEST_URI} works just fine. It's weird I didn't get that in my dump though.

Thanks for your help.



"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

sulfericacid

In reply to Re^2: Recalling the URL of initiating page by sulfericacid
in thread Recalling the URL of initiating page by sulfericacid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.