I'm wondering about the order of elements in @arr. From the code below it seems that you will first replace all a's with random{$1} (should it be $random{$1}?) and then look for a[0]. But if all a's have been replaced by something else you will not find any a[0]'s anymore. What is the underlying logic behind this order?
In reply to Re: Replace strings with []
by hdb
in thread Replace strings with []
by jess195
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |