Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Polish Prefix Calculator

by jwkrahn (Monsignor)
on Oct 03, 2012 at 22:13 UTC ( #997139=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    sub solvepart($);
    sub reformat($){
    sub solvepart($){
  2. or download this
        if ($given ~~ /(?:exit)|(?:end)|(?:quit)/i){
        if ($VERBOSE or $VERBOSE ~~ /v(?:erbose)?/i){
  3. or download this
    my $num=qr/(-?\d++\.?\d*?)/;
        unshift(@stack, [$2,$3,$4]) while $given =~ s/(.*)\((\S++) ++(-?\d
    +++\.?\d*?) ++(-?\d++\.?\d*?)?\)/$1/;
  4. or download this
            if ($level[0]eq'+'){
                                    ?($value=$level[1] % $level[2])
                                    :($value=$level[1] % $value);
  5. or download this
            if ($level[0]eq'+'){
                $value = $level[1] + $level[2] || $value;
            elsif ($level[0]eq'%'){
                            $value = $level[1] % $level[2] || $value;
  6. or download this
    use warnings;
        eval join $operator, @values;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997139]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2016-10-23 06:24 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (300 votes). Check out past polls.