Help for this page

Select Code to Download


  1. or download this
    my $mol = ( $n == 42 ) ? 'forty two' : '';
    
  2. or download this
    my $mol = '';
     $mol = 'forty two'
         if  42 == $n;
    
  3. or download this
    my $mol =  defined $n ? ( $n == 42 ? 'fourty two' : '' ) : 'n/a';