in reply to Re^2: Finding number of 'k'-clique in a graph
in thread Finding number of 'k'-clique in a graph
I just need to understand a bit on (?{}) part.my @cliques = (); $regex .= '(?{ push (@cliques, join(" ", map $$_, 1..$k)) })(?!)'; $string =~ /$regex/x; print join("\n", @cliques), "\n";
|
|---|