Ubuntu Manpages

$template is a reference to an array containing the template to check, split into lines. $valid_template is the same for the template to check against. Lines in these arrays should not have trailing newlines. $errors is a reference to an array where error messages will be stored.

Lines in $valid_template should consist of either plain strings, or strings beginning with 'qr/' (to delimit a regexp object).

Returns true if the templates match and false otherwise.