perl cgi で 2 つの配列またはファイルを使用してテーブルを作成するには、ヘルプが必要です。
別のパスからディレクトリのリストを出力するテーブルを作成し、それをテーブルに配置する必要があります.1列目のタイトルはpath1、2列目はpath2などで、各列にはそのパスからのディレクトリがhrefリンクでリストされています..ここに私が持っているものがあります。
opendir(D, "../abc/status") or die"$!";
my @path1_dir = sort readdir D; closedir D;
opendir(D, "../def/status") or die "$!";
my @path2_dir = sort readdir D; closedir D; .... ...
print "\n"; print "$path1_dir\n"; print "$path2_dir\n";
#print list of directories to column-1 with title Path1
foreach my $path (@path1_dir) {
print "\t\n";
next if ($path =~ /^./);
next if ($path =~ /^\s*$/);
print "$path\n";
}
#this should go to the column two with Path2 title but it does not
foreach my $path (@path2_dir) {
print "\t\n"; `enter code here`
next if ($path =~ /^./);
next if ($path =~ /^\s*$/);
print "$path\n";
}
できれば、誰かがこれについて私を助けることができますか?