Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Misunderstanding Recursion

by Andrew_Levenson (Hermit)
on Dec 15, 2006 at 21:44 UTC ( [id://590122]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $n=1; 
    $lim=1000000;
    ...
        print "$n ";
        prime($n+=2) if $n<$lim;
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
        last if int($o)==$o;}
        print "$i " if $even==0 && $notprime==0;
    }
    
  3. or download this
    
    
    
    C(qw/74 97 104 112/);sub C{while(@_){$c**=$C;print
    (map{chr($C!=$c?shift:pop)}$_),$C+=@_%2!=1?1:0}}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://590122]
Approved by Old_Gray_Bear
Front-paged by friedo
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-28 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found