On 03/15/2012 09:11 AM, Anirban Adhikary wrote:
> I am writting a following code to parse this xml but not able yo
understand
> that why the value of $bsc_id_1 getting changed.
> here is my code
>
> use strict;
> use warnings;
>
> my $xml_file_to_read = "BSC-19478.xml";
> my $counter = 1;
> my $bsc_id_1;
> my $bsc_id;
> open my $RFH,'<',$xml_file_to_read or die "Can't open $xml_file_to_read
> $!\n";
>
Writing code to parse XML is a terrible, terrible idea.
There are many, many excellent modules.
I happen to love XML::LibXML
http://search.cpan.org/modlist/String_Language_Text_Processing/XML
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/