Well you could use function composition to build the sort routine, but as function calls are fairly expensive in Perl, it would be slow. I do think an eval"" IS the best solution. You just have to make sure all the stuff you interpolate into the code you build is safe.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: sort by variable, configurable fields
by Jenda
in thread sort by variable, configurable fields
by Tharg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |