in reply to
trying to create a resend password function
I'm betting you didn't write this code. I suggest you either (a) contact the person who wrote this code to help you (and if they need help they can come here), or (b) you learn some Perl, and then ask an actual Perl question.
-- Randal L. Schwartz, Perl hacker
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.