You don't show us what value $grepstring has. But if the value of $grepstring looks like Perl code, it most certainly won't do what you seem to think it does.
Maybe you can take a step back and tell us what goal you want to achieve?
In reply to Re: Variable problem inside an array
by Corion
in thread Variable problem inside an array
by bittoni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |