I'm a developer and I have to convert a perl program to vb.net. I'm pretty much done but there is one line of code that is giving me a headache, I can't find it anywhere.
Please help.
Here's the line.
$wnp += ( $p{$ng} ? log($p{$ng}) : $uns );
The variable p is a hash table %p, and I understand the log function.
The question is what the "?" and ":" mean. It reminds me a bit of fortran, but I still can't make it out, and I'm running through texts at work with no luck.
please help.
Please help.
Here's the line.
$wnp += ( $p{$ng} ? log($p{$ng}) : $uns );
The variable p is a hash table %p, and I understand the log function.
The question is what the "?" and ":" mean. It reminds me a bit of fortran, but I still can't make it out, and I'm running through texts at work with no luck.
please help.