Alexandre Checinski [AC], on Monday, December 12, 2005 at 11:10 (+0100) wrote:
from head: my $string = '<counter id="183268" since="SDOPERFV16" aggr="Sum" name="pcmTcuFaultOutOfService"/>'; my ($id, $name) = $string =~ /id="(\d+)".*?name="([^"]+)"/; AC> PS: I'm a total newbie... you should learn regexpes, they are very powerful. perldoc perlre For parsing XMl files use some XMl parser. -- How do you protect mail on web? I use http://www.2pu.net [Kazon Borg: "We have assimilated an enemy today!"] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>