Can't locate Net/ in

New user

I am getting the following error message:
Can't locate Net/ in @INC (@INC contains: ../lib.

BEGIN failed—compilation aborted at …. line 3

line 3 has "use Net::SFTP;

    use Net::SFTP;
    $host = ' xxx';
    $userb = ' yyy ';
    $pass = ' zzz';
    my $sftp = Net::SFTP->new($host);
    $sftp->login($user, $pass);

Can anyone say what could be wrong? Need immediate answer
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you need to install Net::SFTP.

    perl -MCPAN -e 'install Net::SFTP'
on a shell (as root), and you should be good to go.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
or if you did install Net::SFTP, explain how you installed it.
Net::SMTP is a part of libnet perl module which can be downloaded from this site:
You could also download Net::SMTP separately and put it together with your script in case if you don't have admin right on this server.

SMTP has nothing to do with SFTP
Tintin, you are right. I was playing with Net::SMTP just few minutes before this answer.
Anyway, it's just a missing module problem which can be installed using cpan shell or downloaded and installed manually from or any mirror.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.