- die "Element 'Scrap' requires attribute 'id' in template file '$filename'." unless (length ($name));
- die "double defined id '$name' in template file '$filename'." if (exists ($self -> {parsed} -> {$name}));
- die "use '/^[_a-zA-Z]\\S*\$/' for 'Scrap'-ids in template file '$filename' (wrong: '$name')." unless ($name =~ /^[_a-zA-Z]\S*$/);
+ croak "Element 'Scrap' requires attribute 'id' in template file '$filename'." unless (length ($name));
+ croak "double defined id '$name' in template file '$filename'." if (exists ($self -> {parsed} -> {$name}));
+ croak "use '/^[_a-zA-Z]\\S*\$/' for 'Scrap'-ids in template file '$filename' (wrong: '$name')." unless ($name =~ /^[_a-zA-Z]\S*$/);