in reply to Finding C++ single inheritance occurrances
Then keys %stuff would be the class names, with $stuff{CLASS} being CLASS's parent.%stuff = ($text =~ /(?:class|struct) \s+ ([\w\d_:]+) \s* : \s* (?:public|protected|private) \s+ ([\w\d_:]+) \s* \{/gsx);
|
|---|