I want to do the following thing:
On my first page, I have a Form and the target is check.pl
In check.pl, I want to save something in cookie and redirect to a page called main.html
The problem is when I use CGI.pm, the function of save cookie is in head, so I get wrong when I call redirect after save cookie. (I think in ASP, it is very simple).
How to solve it using perl and CGI.pm?