Help for this page

Select Code to Download


  1. or download this
    $a1=2; $b1=10; ($a1 > $b1) ? ($int = ($a1/$b1)) : ($int = ($b1/$a1)); 
    +print $int;
    
  2. or download this
    $a1=2; $b1=10; $int = ($a1 > $b1) ? ($a1/$b1) : ($b1/$a1); print $int;
    
  3. or download this
    use strict   ;
    use warnings ;
    ...
    
    print $int;
    
  4. or download this
    my $int = ( defined( $a1 ) and defined( $b1 ) ) ? ( ( $a1 > $b1 ) ? ( 
    +$a1 / $b1 ) : ( $b1 / $a1 ) ) : die( '$a1 and $b1 need to be defined'
    + ) ;