Perl wrote: > > I am trying to understand how this works. For example: > > my $n = @$a > @$b ? @$a : @$b; > > I understand this is a conditional statement I am just not sure what is > being compared with ? and :.
That is same as: my $n; if ( @$a > @$b ) { $n = @$a; } else { $n = @$b; } Where $n is assigned the number of elements of the largest array. 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>