The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

rpn - Reverse Polish Notation calculation

SYNOPSIS

    optex -Mrpn command ...

VERSION

Version 1.01

DESCRIPTION

rpn is a filter module for optex command to detect arguments which look like Reverse Polish Notation (RPN), and replace them by the result of calculation.

See Math::RPN for Reverse Polish Noatation detail.

Since RPN part requires two terms at least,

    optex -Mrpn echo RAND

print just "RAND". Use something like RAND,0+ to get random number.

EXAMPLE

Prevent macOS to suspend for 5 hours.

    $ optex -Mrpn caffeinate -d -t 3600,5*

INSTALL

cpanm https://github.com/kaz-utashiro/optex-rpn.git

SEE ALSO

App::optex, https://github.com/kaz-utashiro/optex

App::optex::rpn, https://github.com/kaz-utashiro/optex-rpn

https://qiita.com/kaz-utashiro/items/2df8c7fbd2fcb880cee6

Math::RPN

AUTHOR

Kazumasa Utashiro

LICENSE

Copyright 2021 Kazumasa Utashiro.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.