Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

use Net::FTP; error

#!/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
goldenrule
Asked:
goldenrule
1 Solution
 
TintinCommented:
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
 
goldenruleAuthor Commented:
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

Technology Partners: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now