I'm trying to convert a large perl program to Java. In an initialization function, it creates a hash using parentheses and then starts assigning values. But then the keys become pairs and triplets of comma-separated strings. What does it mean?
%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";```
$foo{$x, $y, $z}
is equivalent to
$foo{join($;, $x, $y, $z)}
where $;
defaults to a control character ("\x1C"
).
Not just similar...
$ 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With