I have confirmed that changing line if ($data =~ m/ffmpeg\sversion\s0.5-/si) { to if ($data =~ m/ffmpeg\sversion\s0.5[,-]/si) { has indeed fixed the problem i will report a bug appreciate the help, cheers Steve