Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Re: Fibonacci Generator

by John M. Dlugosz (Monsignor)
on Aug 11, 2001 at 07:16 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found