Search the web
Sign In
New User? Sign Up
net-ftp-common
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Not a GLOB reference at C:/Perl/lib/Net/FTP.pm line 1103.   Message List  
Reply | Forward Message #56 of 71 |
Re: [net-ftp-common] Crap and GLOB reference...


Hi guys,

I am using activeperl 5.8 and try to check if files are exist on a remoteftp
server,
but I got tons of stuff in stardard error, I guess.

....
$common_cfg = { Host => $ftpserver,
User => $username,
Pass => $password,
RemoteDir => $RemoteDir
} ;

my $ftp = Net::FTP::Common->new($common_cfg, Debug => 0);

$ftp->login or die sendmail($smtp,$from,$to,"Report Job: CUCBC FTP logon
failure");
foreach (@files) {
my $exist=$ftp->exists(RemoteFile => $_);
print "$_ : $exist\n";
}
$ftp->quit;
...

The script supposes only to print this

DAIL0822.015 : 0

But instead of it print all this crap below, and with this
"Not a GLOB reference at C:/Perl/lib/Net/FTP.pm line 1103."
Help please, I guess if this doesn't work, I will have to look at LWP.


[checking aft AIBC0722.015 AIBC0723.015 AIBC0726.015 AIBC0727.015 AIBC0728.015 A
IBC0729.015 AIBC0730.015 AIBC0803.015 AIBC0804.015 AIBC0805.015 AIBC0806.015 AIB
C0809.015 AIBC0810.015 AIBC0811.015 AIBC0812.015 AIBC0813.015 AIBC0816.015 AIBC0
817.015 AIBC0818.015 AIBC0819.015 AIBC0820.015 AIBU0722.015 AIBU0723.015 AIBU072
...
5 WH020722.015 WH020726.015 WH020727.015 WH020728.015 WH020729.015 WH020803.015
WH020804.015 WH020805.015 WH020809.015 WH020810.015 WH020811.015 WH020812.015 WH
020816.015 WH020817.015 WH020818.015 WH020819.015 for [DAIL0822.015]] at C:/Perl
/site/lib/Net/FTP/Common.pm line 249.
DAIL0822.015 : 0
Not a GLOB reference at C:/Perl/lib/Net/FTP.pm line 1103.






Mon Aug 22, 2005 9:58 pm

ericw12
Offline Offline
Send Email Send Email

Forward
Message #56 of 71 |
Expand Messages Author Sort by Date

Hi guys, I am doing this, nothing really special. use Net::FTP::Common; $common_cfg = { Host => "localhost", User => "eric", Pass => "Test123456", RemoteDir...
ericw12
Offline Send Email
Jun 20, 2005
11:06 pm

... Hi Eric! ... Can you do Debug => 1 instead of Debug => 0 and post the debug output? In other words: $es = Net::FTP::Common->new($common_cfg, Debug => 0); ...
Terrence Brannon
bauhaus@...
Send Email
Jun 21, 2005
2:30 pm

Hi guys, I am using activeperl 5.8 and try to check if files are exist on a remoteftp server, but I got tons of stuff in stardard error, I guess. .... ...
Eric Wang
ericw12
Offline Send Email
Aug 22, 2005
9:58 pm

... Hi Eric, ... You never have to call login() before using a Net::FTP::Common method ... sorry, here's a fix for line 249 in Common.pm warn sprintf...
Terrence Brannon
bauhaus@...
Send Email
Aug 23, 2005
1:09 am

On Tue, 23 Aug 2005 01:09:56 +0000 ... hi, Terrence, Thanks! but the Glob warning is such a anonying warning, every script of mine using Net::Ftp::Common has...
Eric Wang
ericw12
Offline Send Email
Aug 23, 2005
3:09 pm

... Ok Eric, I will work on fixing that when I get home tonight. Just sit tight until then please :)...
Terrence Brannon
bauhaus@...
Send Email
Aug 23, 2005
5:43 pm

Thanks a lot, appreciated! On Tue, 23 Aug 2005 17:42:36 +0000...
Eric Wang
ericw12
Offline Send Email
Aug 24, 2005
2:46 am

... Ok, version 5.2d was uploaded to CPAN with a fix. All I did was add a sub to Common.pm: sub quit { my $self = shift; $self->connected and...
Terrence Brannon
bauhaus@...
Send Email
Aug 25, 2005
3:15 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help