такое впечатление, что вы функционально неграмотный.
у меня нет времени пересказывать вам документацию.
а в связи с тем, что вы не знаете как передавать переменную между запросами,
у меня есть подозрение, что вы не программист.
# perldoc CGI::Session | grep -B0 -A18 "^T"
TO LEARN MORE
Current manual is optimized to be used as a quick reference. To learn
more both about the philosophy and CGI::Session programming style, con-
sider the following:
╥ CGI::Session::Tutorial - extended CGI::Session manual. Also
includes library architecture and driver specifications.
╥ We also provide mailing lists for CGI::Session users. To subscribe
to the list or browse the archives visit
https://lists.source- forge.net/lists/listinfo/cgi-session-user
╥ RFC 2965 - "HTTP State Management Mechanism" found at
http://ftp://ftp.isi.edu/in-notes/rfc2965.txt ╥ CGI - standard CGI library
╥ Apache::Session - another fine alternative to CGI::Session.