Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

PERLISP meditations

by protist (Monk)
on Sep 29, 2012 at 13:08 UTC ( #996373=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (DEFINE (SUM TERM A NEXT B)
            (IF (> A B)
    ...
    (SUM-INT 3 5)
    
    (SUM-SQ 3 5)
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    print sumint(3,5) . "\n";
    #a sum of squares from 3-5
    print sumsq(3,5) . "\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://996373]
Approved by moritz
Front-paged by davido
help
Chatterbox?
[atcroft]: PriNet: Those code bits worked for me, with test hashes, but I didn't test it with more than a few simple test cases. *shrug* Had hoped it would help, at least.
[PriNet]: i think i found the problem, the "source" array that sets the individual key values isn't being cleared, it's keeping the previous values...
[atcroft]: PriNet: You might consider posting a small, self-contained snippet of that segment of your code, and see if someone else has a better idea.....
[atcroft]: PriNet: Ahhh... interesting.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2017-06-28 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (619 votes). Check out past polls.