in reply to Simple regex gone wierd
The fix is to put a last after the print "Killed media type: $media\n". Once you've killed, after all, you needn't bother with more checking.
Alternatively, and probably better, is to put the check for ^%%+ before the foreach loop.
|
|---|