Update ploc.pl

fix bug where custom patterns didn't work