in reply to Using FTP Without any Modules

Replies are listed 'Best First'.
Re^2: Using FTP Without any Modules
by gellyfish (Monsignor) on May 18, 2006 at 11:57 UTC

    unless I'm mistaken the shell script you supplied does nothing but setting some variables and printing some messages to STDOUT

    I nearly missed it as well but this bit:

    echo "open $IP quote USER $user quote PASS $pass lcd " |$ftp -n
    pipes the commands through the ftp command.

    /J\

Re^2: Using FTP Without any Modules
by dsheroh (Monsignor) on May 18, 2006 at 14:03 UTC
    I dunno... My first reaction to "without any modules" tends to be "smells like homework" unless there's a reason given.

    In any case, if "without any modules" actually means "without installing any modules from CPAN", there are modules such as Socket in the core Perl distribution which can be used to implement FTP within your own code if you don't feel like using system, etc.

Re^2: Using FTP Without any Modules
by rhesa (Vicar) on May 18, 2006 at 14:35 UTC
    See A Timely Start for an exceptional case where doing FTP through a shell script was preferred over doing it through Perl.