Complex sentence: It is defined via a small DSL, but essentially is a Perl script and can contain arbitrary Perl as well.
Split into simpler sentences: It is defined via a small DSL, but is essentially a Perl script. Therefore, it can contain arbitrary Perl as well.