note
Hofmator
<p>You could avoid those ugly ifs before every printout by saying
<code>if ($opt_c) {
$\ = "\n";
} else {
$\ = " ";
}
</code>
at the top of your program (see [perlvar]). Your prints then simply become <tt>print;</tt> or <tt>print $y;</tt></p>
<p>And two random remarks, you might be interested in [id://98178|this] recent thread, also dealing with the Fibonacci series and I hope you developed your program using strict and warnings :)</p>
<P>-- Hofmator</P>
103891
103891