Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Closure Over Scalar?

by QM (Parson)
on Feb 19, 2021 at 14:25 UTC ( [id://11128561]=note: print w/replies, xml ) Need Help??


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

This seems to be what use feature 'state' is made for.
Yes, state has fallen out of my lexicon from disuse. A very good point, I don't need a closure, and the assignment happens as expected!

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^3: Closure Over Scalar?
by BillKSmith (Monsignor) on Feb 19, 2021 at 23:27 UTC
    It is not an issue in your example, but could be in your production code. Initialization of state hash and array variables was not available before v5.28.
    Bill

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found