in reply to Re^2: Use cases for 'sub Pckg::func { }' ?
in thread Use cases for 'sub Pckg::func { }' ?
I'm using the "block" eval, which is just a "try/catch" mechanism, so I can
"die" deep in parsing recursion and still be able to go on to the next test case. It's just a different
feature with the same name as the "string" eval, which is what they don't want to allow.
I could have used a hash to map operations to their proper subs, but why bother when perl already has a hash
that does that for me. "Polymorphism forever!" hehehe
"Ah, I think I got it," - yes, yes you do :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Use cases for 'sub Pckg::func { }' ?
by LanX (Saint) on Aug 03, 2020 at 13:54 UTC |
In Section
Seekers of Perl Wisdom