I 'm creating a FTP client and i get an error when i try this
Can't locate object method "ls" via package "ftp" (perhaps you forgot to load "f
tp"?) at ftp.pl line 239, <> line 1.
The below is the subroutine, i get input from the user and put the same to an arry and take that again for later usage,
[code=perl]
$ftp = Net::FTP->new($site, Debug => 0)
$ftp->login($un,$pwd );
$free = @comm[1];
@list = $ftp->ls($free); # I get the error here !
foreach (@list){
print "\n".$_."\n ";
}
prwrkdir();
comm();
[/code]
Can't locate object method "ls" via package "ftp" (perhaps you forgot to load "f
tp"?) at ftp.pl line 239, <> line 1.
The below is the subroutine, i get input from the user and put the same to an arry and take that again for later usage,
[code=perl]
$ftp = Net::FTP->new($site, Debug => 0)
$ftp->login($un,$pwd );
$free = @comm[1];
@list = $ftp->ls($free); # I get the error here !
foreach (@list){
print "\n".$_."\n ";
}
prwrkdir();
comm();
[/code]
Comment