laziness, impatience, and hubris | |
PerlMonks |
Re^2: Hash/Array slice : how to exclude items? -- tie hash to mask valuesby bliako (Monsignor) |
on Jan 26, 2023 at 15:06 UTC ( [id://11149900]=note: print w/replies, xml ) | Need Help?? |
That's a good solution Discipulus. The mask/unmask (re: see also rsFalse's Re: Hash/Array slice : how to exclude items?) can be achieved via magic/dualavar. I cite here all contributions to Schizophrenic var. Question is where should the hidden attribute go: key, values and/or hash. Another thing that comes to mind is that may lead to something quite bigger borrowing from the framework of Model-View-Controller: you have the data in the hash and you get different views from it: hidden/colors (rsFalse)/etc. bw, bliako
In Section
Seekers of Perl Wisdom
|
|