But the goal of the OP is to have the same order for the $str and $val, not for every run.
That's what values guarantees:
[...] So long as a given hash is unmodified you may rely on keys, values and each to repeatedly return the same order as each other. [...]
Alexander
In reply to Re^4: DBI and mysql query formatting
by afoken
in thread DBI and mysql query formatting
by kimlid2810
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |