(Untested. Not certain that second regex returns a list. Might need to be in a loop after all.)# trim to just the Root node $xmlIn =~ s/^.*(<Root.*?>).*$/$1/s; # grab the key/value pairs %rootAttr = ($xmlIn =~ m#(\S+?)="(\S+?)"#g);
In reply to Re: Preferred Methods (again)
by perrin
in thread Preferred Methods (again)
by vek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |