That code certainly doesn't do what you think it does. Add a print $line,"\n"; statement just after foreach to see why.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: grep in line and print
by roboticus
in thread grep in line and print
by justbow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |