The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

kdocUtil

        General utilities.

countReg

        Parameters: string, regexp

        Returns the number of times of regexp occurs in string.

findCommonPrefix

        Parameters: string, string

        Returns the prefix common to both strings. An empty string
        is returned if the strings have no common prefix.

makeRelativePath

        Parameters: localpath, destpath
        
        Returns a relative path to the destination from the local path,
        after removal of any common prefix.

splitUnnested Helper to split a list using a delimiter, but looking for nesting with (), {}, [] and <>. Example: splitting int a, QPair<c,b> d, e="," on ',' will give 3 items in the list.

        Parameter: delimiter, string
        Returns: array, after splitting the string

        Thanks to Ashley Winters