in reply to Re: ftp scripts
in thread ftp scripts

Hie hubb0r, does all this modules comes with perl by default? (sorry, i am totally new to perl, i am a ASP guy trying to learn perl). i am working on a huge production server which i can't just simply install a new module. thats why i need to have some raw scripts.. Thanks for sharing with me... Cheers, Darren

Florist In Malaysia

Replies are listed 'Best First'.
Re^3: ftp scripts
by brian_d_foy (Abbot) on Aug 26, 2005 at 07:58 UTC

    Have you checked to see if Net::FTP is available? Maybe you don't even have to worry about all this stuff. If you can read the documentation, you have the module.

    perldoc Net:::FTP

    Failing that, make friends with an admin. :)

    --
    brian d foy <brian@stonehenge.com>
    Subscribe to The Perl Review
Re^3: ftp scripts
by Joost (Canon) on Aug 26, 2005 at 08:02 UTC
    If you can install a new script, you should be able to install most modules too.

    Anyway, Net::FTP is not part of the perl core distribution, but its libnet package is so useful that it's practically always available on machines with a perl install anyway. At the very least, it should be available as a system package (rpm, deb, ppm, whatever) for any system you'd want to run a production server on.

Re^3: ftp scripts
by sgifford (Prior) on Aug 26, 2005 at 15:58 UTC
    Keep in mind that modules don't have to be installed system-wide; you can install a private copy of Net::FTP in a private directory, and put use lib '/path/to/private/dir'; at the top of your script to use it.