Perl Programming/Keywords/log

Previous: lock Keywords Next: lstat

The log keyword

log returns the natural logarithm base e of EXPRESSION. If EXPRESSION is omitted, exp($_) is executed.

Syntax

  log EXPRESSION
  log

Examples

print exp(2.71828182845905) . "\n";
print exp(7.38905609893065) . "\n";
1
2

See also

Previous: lock Keywords Next: lstat
Category:Book:Perl Programming#Keywords/log%20
Category:Book:Perl Programming