sam lehman wrote:

i got his code from a program i found, and i was wondering that the ? and the : are for?

$target = (@digits % 2) ? ($digits[int(@digits/2)]) : ([EMAIL PROTECTED]/2-1]);

conditional statement (with lower priority than an 'if-construct' ?):

if (@digits % 2) {
  $target = ($digits[int(@digits/2)])
}else{
$target = ($digits[int(@digits/2)])
}

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to