Thanks you! It works.
I've tried eval "$to" but got a syntax error that I couldn't understand. Seeing that eval qq{"$to"} is the same as eval "\"$to\"" I can understand now what I've done wrong.
In reply to Re^2: Interpolating backreferences in an eval
by gnustavo
in thread Interpolating backreferences in an eval
by gnustavo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |