Perl Programming/Keywords/log

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: lock Keywords Next: lstat

The log keyword[edit | edit source]

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

Syntax[edit | edit source]

  log EXPRESSION
  log

Examples[edit | edit source]

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

See also[edit | edit source]

Previous: lock Keywords Next: lstat