Solved

use Net::FTP; error

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
transpose into pipe delemited 8 80
Replace  text in a file 2 123
How to get all the API from website? 11 125
How to translate this 2-line while loop into C from Perl? 8 135
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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…

749 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