in reply to Loading a web page automatically

You could supply a next_page parameter and then redirect using something like the following
print "Status: 302 Moved\nLocation: $next_page\n\n";

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.