Solved

use Net::FTP; error

Posted on 2006-11-07
4
266 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

778 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