Solved

use Net::FTP; error

Posted on 2006-11-07
4
269 Views
Last Modified: 2010-03-05
#!/opt/perl/5.8.0/bin/perl -w

BEGIN {
     unshift( @INC, "/opt/perl/5.8.0/lib", "/opt/perl/5.8.0" );
     }
use Net::FTP;

Above code gives error as below. please advise.

==> perl del
Perl 5.006 required--this is only version 5.00503, stopped at /opt/perl/5.8.0/lib/vars.pm line 3.
BEGIN failed--compilation aborted at /opt/perl/5.8.0/lib/vars.pm line 3.
BEGIN failed--compilation aborted at /opt/perl/5.8.0/lib/Net/FTP.pm line 14.
BEGIN failed--compilation aborted at del line 6.
0
Comment
Question by:goldenrule
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 17893613
How did you install Net::FTP?

why do you do?

BEGIN {
     unshift( @INC, "/opt/perl/5.8.0/lib", "/opt/perl/5.8.0" );
     }
0
 

Author Comment

by:goldenrule
ID: 17899508
never mind, I found the solution.

#!/opt/perl/5.8.0/bin/perl -w
use Net::FTP;

works.

I am using it to ftp to another server and get/put files
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question