in reply to Re: Re: Fibonacci Generator
in thread Fibonacci Generator
You can avoid that ugly if/else and excess braces by writing:if ($opt_c) { $\ = "\n"; } else { $\ = " "; }
$/= $opt_c ? "\n" : " ";
|
---|
In Section
Code Catacombs
in reply to Re: Re: Fibonacci Generator
in thread Fibonacci Generator
You can avoid that ugly if/else and excess braces by writing:if ($opt_c) { $\ = "\n"; } else { $\ = " "; }
$/= $opt_c ? "\n" : " ";
|
---|