in reply to multiple matches in a string

Read about /g in perlre. Then, fix your script and try again. If it works, read perlretut and don't stop reading until you reach the end.

2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$