Are you 100% sure that $self->get_stdout() is returning what you expect it to return? (Did you forget to chomp?)
Try adding print '<',$line,">\n"; to the start of the foreach loop.
Also see Basic Debugging Checklist for lots of other suggestions on how to debug any problem.
In reply to Re: Regular expressions
by RichardK
in thread Regular expressions
by user786
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |