But if you are allergic to modules and your string always has the fixed format shown above, you can use quick and dirty shortcuts that will bite you when the format cahnges :)
A hack such as this will do the trick:
-Markmy $string = "<message><file>D:\linkctltr.cxx</file><line>68</line><ty +pe>Note</type><codee>970</codee><desc>Use outside of a typedef</desc> +</message>"; $string =~ /<file>([^<]+)/; my $file = $1; $string =~ /<line>([^<]+)/; my $line = $1; $string =~ /<type>([^<]+)/; my $type = $1; $string =~ /<codee>([^<]+)/; my $codee = $1; $string =~ /<desc>([^<]+)/; my $desc = $1;
In reply to Re: No xml module please
by kvale
in thread No xml module please
by DS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |