thank you it worked perfectly!!
but now that its detecting the module, i am stuck at a new problem. my code is the same as above but now its showing ::
'Can't locate object method "new" via package "Email::Send::SMTP::Gmail" <perhaps you forgot to load "Email::Send::SMTP::Gmail"> at email1.pl line 5'