Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Re: Fibonacci Generator

by John M. Dlugosz (Monsignor)
on Aug 11, 2001 at 07:16 UTC ( #104111=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Fibonacci Generator
in thread Fibonacci Generator

if ($opt_c) { $\ = "\n"; } else { $\ = " "; }
You can avoid that ugly if/else and excess braces by writing:
$/= $opt_c ? "\n" : " ";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://104111]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2023-03-22 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?