Help for this page

Select Code to Download


  1. or download this
    sub diag {
      sqrt( $_[0]^^2 + $_[1]^^2 );
    }
    
  2. or download this
    sub diag {
      sqrt( shift^^2 + shift^^2 ); # Not sure if this is more readable, or
    + not.
    }