Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Net:FTP module

Status
Not open for further replies.

mcguinne

Technical User
Dec 19, 2001
33
IE
Hi,

I got:

Can't declare undef operator in my at /usr/users/tony/perl/lib/libnet-1.12/lib/site_perl/Net/Cmd.pm line 500, near ") ="
BEGIN failed--compilation aborted at /usr/users/tony/perl/lib/libnet-1.12/lib/site_perl/Net/FTP.pm line 20.
BEGIN failed--compilation aborted at /usr/users/tony/perl/ftptest3.pl line 6.

when I tried to use Net::FTP

and the error seems to come from the following
line in Cmd:

my (undef,$len,$offset) = @_;

The perl version I am using is 5.004_04.

Any help greatly appreciated. Could you copy your response to:
tony_mcguinness@amt-sybex.com

Regards,

Tony
 
I think this is a Perl 5.0 vs Perl 5.6 issue.

I don't have a Perl 5.0 around to test but it seems to work find in 5.6.

The module shouldn't be so naughty unless it does a require 5.6 --- which it doesn't.

Can you go 5.6 without much hassle?
 
I notice in both FTP.pm & Cmd.pm that there is a
"require 5.001" statement. That's on of the first
things that I checked.

On this particular machine it would be quite awkward
to go to 5.6 since the perl distribution is tied to
several instances of an application.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top