Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Isn't that nice?

by jepri (Parson)
on Aug 31, 2002 at 04:34 UTC ( #194307=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: Re: Re: Isn't that nice?
in thread Isn't that nice?

You can create functions with defaults. I don't know about you, but that's an instant winner for me. And you can reduce temporary variables by setting up a function in stages, perhaps by asking the user for the parameters one by one, and then it fires when you have them all filled in. Saves temporary variables and looks neater. Of course you don't need to use this - you can keep writing temporary variables if you really want.

As I understand it, this is another effect of the much repeated 'closures are first class objects'.

I didn't believe in evil until I dated it.

Comment on Re: Isn't that nice?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2015-11-26 21:23 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (707 votes), past polls