in reply to how to speed up program dealing with large numbers?

The formatting of your post is fine, but you should choose a better node title. See How do I compose an effective node title?. This will help you to get a better response.

With regards to speeding up your code, you could try to profile it. See the Tutorials section: Profiling your code.

I would also appreciate any constructive criticism on my code, I am here to learn.
perlcritic is a handy tool for automatically criticizing your code.
for($i = $value; $i <= $range; $i++){
A more Perl-ish way to write this for loop is:
for $i ($value .. $range){
Also
print $fibValue1.' / '.$fibValue2.' = '.$phiApprox;
can be written as (with less typing):
print "$fibValue1/$fibValue2 = $phiApprox";

Update: fixed link.

Replies are listed 'Best First'.
Re^2: how to speed up program dealing with large numbers?
by Solarplight (Sexton) on Mar 22, 2010 at 00:23 UTC

    Thank you for the information and criticism.

    I'll keep that in mind about title-ing in the future.

    As far a speeding up the code, BrowserUk showed me some code using Memoize that made a huge difference. Still, thanks for the tip on profiling, looks like that is something that could come in handy, I'm definatley gonna read up on that.

    Definitely want to check out that percritic, but your link seems broken. No big though, I'll google it.

    I love the format you suggested for the for loop, already changd that in my code. Much easier way of doing a for loop.

    Again, thank you, this is exactly the kind of info i am looking for.