in reply to Re^2: Calling func named in string
in thread Calling func named in string
There is a difference here...
My goal was to type the list of names once, as it's fairly long (about 50). This is for both ease of typing, and for clarity of code.
Your solution requires the redundant "thing => thing", whereas what I arrived at is simply a list of "things".
I agree that it's a Good Thing to not turn off strict, but I'm willing to accept that in a very localized area, for this one line of code, in order to make this happen.
P.S. Better solution arrived at above https://www.perlmonks.org/?node_id=11163205
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Calling func named in string
by GrandFather (Saint) on Dec 16, 2024 at 22:32 UTC |