You can avoid that ugly if/else and excess braces by writing:if ($opt_c) { $\ = "\n"; } else { $\ = " "; }
$/= $opt_c ? "\n" : " ";
In reply to Re: Re: Re: Fibonacci Generator
by John M. Dlugosz
in thread Fibonacci Generator
by sifukurt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |