in reply to Which internal DSL are there in Perl? (Domain Specific Languages - Part 1)

Another category is parts of the language that don't match the rest, such as the flags for m and other operators.

There are also small "languages" too small to mention, such as `use overload`.

Replies are listed 'Best First'.
Re^2: Which internal DSL are there in Perl? (Domain Specific Languages - Part 1)
by LanX (Saint) on Aug 04, 2017 at 21:05 UTC

      ah, you just want internal DSLs. I just added File::Find::Rule (a query language parsed as Perl), then.

        There's also Path::Class.

        file("foo/bar.txt")->dir->parent->dir("baz")

        It's the internal DSL equivalent of the following XPath query:

        file('foo/bar.txt')->find('dir()/../baz')

        Unfortunately, Path::Class wasn't designed as DSL, so it doesn't have an equivalent of

        dir('.')->find('*[file()]')