It takes the raw text from the form input boxes and “parses” it, or puts it in a form that Perl can use.
This subroutine uses environmental variables and regular expressions that are beyond the scope of this book.
Don’t worry about not understanding it: after you’ve finished this book, you can move on to other, more advanced Perl books that explain parsing subroutines like this one in detail.