in reply to How to print the qr regex to the stdout?

On another note:

You used a lot of escaping of \/ in your regex:

> "regex" => qr/^\/a\/.*?\/b\/.*\/pkgs\/([^\/]*)?\/([^\/]*)?\/.*/

Are you aware that qr and his siblings of "quote-like-operators" allow other delimiters?

Like qr(...) or qr~...~ and so on?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery