# New Ticket Created by Adrian # Please include the string: [perl #120600] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=120600 > The following code works: #!/usr/bin/perl ($_) = "abcdef" =~ / ((?&BB).*) | (?!) (?<W>[abc]) (?<NW>[^abc]) (?<BB> (?<=[abc])(?=[^abc]) | (?<=[^abc])(?=[abc]) ) /x; print; The following equivalent code does not: #!/usr/bin/perl ($_) = "abcdef" =~ / ((?&BB).*) | (?!) (?<W>[abc]) (?<NW>[^abc]) (?<BB> (?<=(?&W))(?=(?&NW)) |(?<=(?&NW))(?=(?&W)) ) /x; print; Why is the named pattern being treated as a variable length pattern? Thanks, Adrian HawrylukThread Next