Remo Sanges
On Mar 11, 2004, at 11:37 AM, Ralf Schaa wrote:
Remo Sanges wrote:
$target = (@digits % 2) ? ($digits[int(@digits/2)]) : ([EMAIL PROTECTED]/2-1]);
if ($target = (@digits % 2)) { ($digits[int(@digits/2)]); }
else { ([EMAIL PROTECTED]/2-1]); }
isn't it like this?
condition is (@digits % 2) : when the modulo is 1 then $target= ($digits[int(@digits/2)]) else [EMAIL PROTECTED]/2-1])
-- 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>