in reply to Re: Munging with a regex dispatch table
in thread Munging with a regex dispatch table
IMO, that's cleaner and more flexible. YMMV.
And also preserves the ordering of the rules, which could be important. E.g. you want to be able to shortcut processing of a record by setting a flag (a la $File::Find::prune = 1) it'd be nice to know that the rules you're trying to skip over won't get run before the pruning one just because of the hashing order.
Update: Oop, you mentioned execution order. Never mind me. %/
|
|---|