Hello,
I saw in the sec man page that we could create and set variables
concatenated with values e.g. eval %p ( $count_users_$2='1';) .
My problem is what if the value of $2 has a "$" sign in it e.g. doe$.
The value will be $count_users_doe$, which is unacceptable under perl
laws.
Is there any
Sorry I had to modify the subject
Hello,
I saw in the sec man page that we could create and set variables
concatenated with values e.g. eval %p ( $count_users_$2='1';) .
My problem is what if the value of $2 has a "$" sign in it e.g. doe$.
The value will be $count_users_doe$, which is unaccept
hi Ali,
it is tricky to solve this issue (and similar problems) with eval, since the
eval miniprogram will always be compiled after variable substitution. If you
want to have a more bulletproof solution, the simplest way is to use an
anonymous function instead of a miniprogram -- compile the fun