nkpgmartin has asked for the wisdom of the Perl Monks concerning the following question:

I know I'm being redundant, but why doesn't this work?
$log = "log"; if ($list == 1)# one file to send { blah (this part works); } elsif ($list == 2) # multiple files to send { foreach $file (@initList) { $command = <<eod; ftp -nv $rem_host << eof > $log; user $rem_user $rem_passwd mput $ftp_source_path[$i] $ftp_dest_path[$i] bye eof eod } }
I think there's something wrong with my put notation but I don't know how to fix it. This loop won't even update the log file. argh.

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: (duplicate)ftp multiple files revisited(to be deleted)
by tye (Sage) on Apr 18, 2001 at 21:03 UTC
    The previous version of this question was moved to Seekers of Perl Wisdom (and the author was /msg'd with that fact). This answer and question will be deleted.

    Originally posted as a Categorized Answer.