Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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'+'){
                $level[2]
    ...
                                    ?($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
    #!/usr/bin/perl
    use warnings;
    ...
        eval join $operator, @values;
        }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2014-09-21 00:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (165 votes), past polls