Yes, the advantage is that of compile-time checking of regular expressions. Speaking personally, I find this one of the advantages of Perl over other scripting languages, where a regexp syntax error is caught only at run time. There is a small overhead associated with compiling the regular expression even though it may not in the end be used. --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=129803Thread Previous