代码拉取完成,页面将自动刷新
同步操作将从 openKylin/libraw 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/perl
use Data::Dumper;
@makes=( "AgfaPhoto", "Canon", "Casio", "Digital Bolex", "Epson", "Fujifilm", "Imacon",
"Mamiya", "Minolta", "Motorola", "Kodak", "Konica", "Leica", "Hasselblad",
"Nikon", "Nokia", "Olympus", "Pentax", "Phase One", "Ricoh",
"Samsung", "Sigma", "Sinar", "Sony" );
MAINLOOP:
while(<>)
{
chomp;
$cname = $_;
$cname=~s/^\s+//g;
$cname=~s/\s+$//g;
for my $camera (@makes)
{
if ($cname=~/\Q$camera\E\s+(.*)/)
{
$model = $1;
push @{$cameralist->{$camera}},$model;
next MAINLOOP;
}
}
if($cname=~/(\S+)\s+(.*)/)
{
($make,$model) = ($1,$2);
push @{$cameralist->{$make}},$model;
next MAINLOOP;
}
push @{$cameralist->{$make}},"NO MODEL";
}
my $havenx1=0;
print "<ul>\n";
for my $make (sort keys %$cameralist)
{
if( $#{$cameralist->{$make}} < 1)
{
print "<li>$make $cameralist->{$make}->[0]</li>\n";
}
else
{
print "<li>$make\n<ul>\n";
for my $model (@{$cameralist->{$make}})
{
print " <li>$model</li>\n";
}
print "</ul>\n</li>\n";
}
}
print "</ul>\n";
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。