You are taking $_ and removing 'CASE -' when it matches and then you copy the remainder in to $cases. Then you rewrite $cases in each iteration. I believe you want:foreach(@goods){ if (s/$caseid//){ $cases = $_; } }
| grep> grep clue /home/users/* |
In reply to Re: File upload and regex
by grep
in thread File upload and regex
by amearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |