Small suggestion: It is usually useful to make scripts pipeable, which is really easy for us perlers. All you need to do is change the input to something like:
and then it will work from stdin and will exit on ^D (^Z on dos?) if it reads from STDIN.print "Please enter a number or expression: "; my $num=<> || exit(0); print "How many iterations: "; my $count=<> || exit(0); $num=eval($num); chomp($count);
Cheers
In reply to Re: Continued Fractions
by fundflow
in thread Continued Fractions
by tilly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |