我正在尝试将大型perl程序转换为Java。在初始化函数中,它使用括号创建哈希,然后开始分配值。但是随后,这些密钥变成了一对和三组,以逗号分隔的字符串。什么意思?
%par=( ... )
$par{"symbolChainAny"}= "*"; # chain name if ...
$par{"acc2Thresh"}= 16; # threshold for...
$par{"txt","copyright"}= "elided";
$par{"txt","contactEmail"}= "elided";
$par{"txt","modepred","sec"}= "prediction of secondary structure";
$par{"txt","modepred","cap"}= "prediction of secondary structure caps";```
答案 0 :(得分:9)
$foo{join($;, $x, $y, $z)}
等同于
$;
其中"\x1C"
默认为控制字符($ diff \
<( perl -MO=Concise,-exec -e'$foo{$x,$y,$z}' 2>&1 ) \
<( perl -MO=Concise,-exec -e'$foo{join($;,$x,$y,$z)}' 2>&1 ) \
&& echo identical
identical
)。
不仅相似...
Image ball = null;
new Layout().createEllipse(ball);
runnable = new Layout();
move = new Thread(runnable);
move.start();