http://qs321.pair.com?node_id=231778


in reply to carrying a lot of vars from page to page with hidden()

A question that might be related. If I run a CGI program using a subroutine for each page, normally variables from one subroutine/page will not be available to the other subroutines, which is the way Perl works, of course. However, if I access these variables by using something like print somesubroutine($variable) it doesn't play nice with CGI.pm - instead of returning post data, pages after the second just print the submit button again. (current state of the program is lists.bilkent.edu.tr/~robin/cgibin/tester.cgi.)

Originally posted as a Categorized Answer.