Added a perl snippet to use regex strip instead of the chomp function..