in reply to Continued Fractions
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: Continued Fractions
by tilly (Archbishop) on Nov 16, 2000 at 22:40 UTC | |
|
Re: Re: Continued Fractions
by Fastolfe (Vicar) on Nov 16, 2000 at 21:13 UTC | |
by fundflow (Chaplain) on Nov 16, 2000 at 21:25 UTC |