Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Polish Prefix Calculator

by jwkrahn (Abbot)
on Oct 03, 2012 at 22:13 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://997139]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found