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]);
Others have explained what ?: is but you could write that more simply as: my $target = $digits[ @digits / 2 - .5 ]; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
