Help for this page

Select Code to Download


  1. or download this
    A ? B = C : D = E
    # resolves
    ( A ? ( B = C ) : D ) = E
    
  2. or download this
    @_ ? ( $param2 = shift ) : ( $param2 = "Shift" );
    # and while we're at it, of course, refactor that
    $param2 = @_ ? shift : "Shift"