Leser: 1
|< 1 2 3 >| | 22 Einträge, 3 Seiten |
1
2
3
4
5
# change remote directory
my ($f1, $f2, $ftp_upload_location) = @$f
$ftp->cwd ($ftp_upload_location);
..............
..............
QuoteFri Mar 5 23:06:35 2004] ftp.cgi: "my" variable $f1 masks earlier declaration in same scope at ftp.cgi line 105.
[Fri Mar 5 23:06:35 2004] ftp.cgi: "my" variable $f2 masks earlier declaration in same scope at ftp.cgi line 105.
Quote[Fri Mar 5 23:06:35 2004] ftp.cgi: Scalar found where operator expected at ftp.cgi line 107, near "$f
[Fri Mar 5 23:06:35 2004] ftp.cgi: #...
[Fri Mar 5 23:06:35 2004] ftp.cgi: $ftp"
[Fri Mar 5 23:06:35 2004] ftp.cgi: (Missing semicolon on previous line?)
[Fri Mar 5 23:06:35 2004] ftp.cgi: syntax error at ftp.cgi line 107, near "$f
1
2
3
4
5
# change remote directory
my ($f1, $f2, $ftp_upload_location) = @$f;
$ren[0]->[2] = "/DE/IN";
$ren[1]->[2] = "/DE/OUT";
$ftp->cwd ($ftp_upload_location);
Quotevon cc:
und ich verstehe deine antworten zu punkt 2 nicht,
was deiner meinung falsch ist.
$ftp->put($f2) and last;
Quoteat now + 1 hour
oder
at 21:00
1
2
3
4
5
# change remote directory
my ($ft1, $ft2, $ftp_upload_location) = @$f;
$ren[0]->[2] = "/DE/IN";
$ren[1]->[2] = "/DE/OUT";
$ftp->cwd ($ftp_upload_location);
1
2
3
4
5
6
7
8
use Data::Dumper;
# direkt vor dem foreach $f(@ren)
print Dumper(\@ren);
#...
#direkt von dem $f->cwd($ftp_upload_location)
print $ftp_upload_location;
1 2 3 4
foreach my $f (@ren) { my ($ft1, $ft2, $ftp_upload_location) = @$f; $ren[0]->[2] = "/DE/IN"; $ren[1]->[2] = "/DE/OUT";
1
2
3
4
5
6
7
8
while (<>) { # for every line in info
m/^\s*(\S+)\s+(\S+)\s*$/ or next; #
-f $1 or next; # skip if file to rename does not exist
-f $2 and next; # skip if file to rename does not exist
push @ren, [ $1, $2 ];
$ren[0]->[2] = "/DE/IN";
$ren[1]->[2] = "/DE/OUT";
}
1
2
3
4
5
# change remote directory
$ren[0]->[2] = "/DE/IN";
$ren[1]->[2] = "/DE/OUT";
my ($ft1, $ft2, $ftp_upload_location) = @$f;
$ftp->cwd ($ftp_upload_location);
1
2
3
4
5
# change remote directory
my ($ft1, $ft2, $ftp_upload_location) = @$f;
$ren[0]->[2] = "/DE/IN";
$ren[1]->[2] = "/DE/OUT";
$ftp->cwd ($ftp_upload_location);
|< 1 2 3 >| | 22 Einträge, 3 Seiten |