Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: c-style for loop versus list for loop, and bigint

by LanX (Saint)
on May 19, 2011 at 20:27 UTC ( [id://905794]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $answer = 1;
    for my $j ( 1 .. 999 ) {
    ...
      $i=$j+0;                 # $i is now bigint
      $answer += $i ** $i;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-24 04:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found