in reply to Re^5: getting ancestors of element
in thread getting ancestors of element
where I am trying to extract the value of the name attribute which could be single word all lowercase or all uppercase, could also be Panoply::Blah or Panoply::Blah::Blah2 or have special character in name such as ~BAR In script $tname would contain something like$tname =~ m/[declaration_]?name="(\w+[:]?.\w+[:]?.\w+);
Also noticed from test that passing ~BAR in the argument $1 inall_members name="~BAR" protection="public" scope="Panoply::BAR"
Does not return a list because of ~ character. Any help with regex appreciated.ret_ancestors sub {@list = join(" => ", @_)}, $nitemstr, $1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: getting ancestors of element
by jccunning (Acolyte) on Sep 08, 2012 at 22:44 UTC | |
by Anonymous Monk on Sep 09, 2012 at 02:30 UTC |