CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Re: [sgurumukhi] Need to write a regular expression.: Edit Log



miller
User

Apr 27, 2011, 12:03 AM


Views: 1925
Re: [sgurumukhi] Need to write a regular expression.

use XML::Simple


Code
use XML::Simple; 

use strict;

my $data = do {local $/; <DATA>};

my $xml = XMLin($data);

use Data::Dumper;
print Dumper($xml);

__DATA__
<ResourceCompile>
<PreprocessorDefinitions>INTL_US;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
<AdditionalIncludeDirectories>res\us;res;..\dlls;..\qw;..\ictls;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ResourceOutputFileName>$(IntDir)$(ProjectName).res</ResourceOutputFileName>
</ResourceCompile>



(This post was edited by miller on Apr 27, 2011, 12:04 AM)


Edit Log:
Post edited by miller (User) on Apr 27, 2011, 12:04 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives