diff options
Diffstat (limited to 'Aufgabe6/RPN/lib/RPN.pm')
| -rw-r--r-- | Aufgabe6/RPN/lib/RPN.pm | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/Aufgabe6/RPN/lib/RPN.pm b/Aufgabe6/RPN/lib/RPN.pm index 693ca51..6e8f5b1 100644 --- a/Aufgabe6/RPN/lib/RPN.pm +++ b/Aufgabe6/RPN/lib/RPN.pm @@ -391,41 +391,43 @@ sub rpn { 1; __END__ -# Below is stub documentation for your module. You'd better edit it! +# Below is the documentation for RPN. =head1 NAME -RPN - Perl extension for blah blah blah +RPN - Perl extension that implements simple RPN functionality. =head1 SYNOPSIS use RPN; - blah blah blah + + RPN::rpn("5 5 +"); =head1 DESCRIPTION -Stub documentation for RPN, created by h2xs. It looks like the -author of the extension was negligent enough to leave the stub -unedited. +This module makes it possible to calculate in reverse polish notation. -Blah blah blah. +=over 1 -=head2 EXPORT +=item rpn() -None by default. +This is the evaluation function for an RPN string. +Input: + $rpnString - The String with an RPN expression. +Output: + undef if an error occured otherwise the result of the upn evaluation. -=head1 SEE ALSO +=back -Mention other useful documentation such as the documentation of -related modules or operating system documentation (such as man pages -in UNIX), or any relevant external documentation such as RFCs or -standards. +=head2 EXPORT -If you have a mailing list set up for your module, mention it here. +None by default. + +=head1 SEE ALSO -If you have a web site set up for your module, mention it here. +https://en.wikipedia.org/wiki/Reverse_Polish_notation =head1 AUTHOR @@ -439,5 +441,4 @@ This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.22.0 or, at your option, any later version of Perl 5 you may have available. - =cut |
