When you want to do things in perl, try the simplest thing that could possibly work - it often does.
In reply to Re: regex and sysread by moritz in thread regex and sysread by saranperl