On Mar 11, 2004, at 6:07 AM, sam lehman wrote:
i got his code from a program i found, and i was wondering that the ? and the : are for?
It is a contracted form for 'if'... 'else'....
$target = (@digits % 2) ? ($digits[int(@digits/2)]) : ([EMAIL PROTECTED]/2-1]);
if ($target = (@digits % 2)) { ($digits[int(@digits/2)]); }
else {
([EMAIL PROTECTED]/2-1]);
}Regards
Remo Sanges BioGeM - Tigem
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
