Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: Closure Over Scalar?

by stevieb (Canon)
on Feb 18, 2021 at 17:56 UTC ( [id://11128532]=note: print w/replies, xml ) Need Help??

in reply to Re: Closure Over Scalar?
in thread Closure Over Scalar?

I do like the constant way of doing things (++) the best in this case. Primarily because this is a hard-coded variable that doesn't appear that it'll change.

Also, constants are usually declared/defined at the top of a file, so if a change is needed, they're not hard to find within the code.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-06-18 06:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.