Dave Liquorice wrote:
> I gets lots of errors even with this simple bit of Perl:
>
> #!/usr/bin/perl -w
> require "ftp.pl";
> $host='some.host.com';
> $result=&ftp'open($host,21,0,2);
That's very old perl syntax.
> Looking about on the web newer versions of Perl use net::ftp
> rather than ftp.pl (which looks a damn sight easier to use).
You should use Net::FTP. ftp.pl is *ancient*.
> So two questions: Is SME v6 going to use a newer version of
> Perl and thus the net::ftp module meaning I'm wasting my time
> trying to get this to work with an older Perl?
No version of e-smith/SME ever used perl version 4, so you should use Net::FTP.
> Should I be attempting to do this in Perl or would Python be
> better?
That's a religious question

But either can get the job done.
Charlie