Is there a better way to store the result into the variable?
Yes - I showed how to do this without calling an extra perl process, it'll give you much more power and control.
In reply to Re^3: Print text on the same line after match
by haukex
in thread Print text on the same line after match
by periodicalcoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |