Solved

use Net::FTP; error

Posted on 2006-11-07
4
262 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
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now