傳回 EXPR 的正平方根。如果省略 EXPR,則使用 $_。除非您已載入 Math::Complex 模組,否則僅適用於非負運算元。
$_
Math::Complex
use Math::Complex; print sqrt(-4); # prints 2i