Hi,

I installed BioPerl on RHEL 5.5 (successfully I hope) and am trying to
execute a xml parser script that uses XML::Simple. I keep getting the
following error message:

could not find ParserDetails.ini in /usr/local/lib/perl5/site_
perl/5.12.2/XML/SAX

When I try to reinstall XML::Simple using CPAN, it tells me that the module
is up to date. Not sure what to do at this point. Does anyone have an idea
what I'm doing wrong or haven't done? My script is below.

many thanks

galeb

#!/usr/local/bin/perl
# parse_xml_OMap.pl
use strict; use warnings;
use Data::Dumper;


use XML::Simple;
my $xs = XML::Simple->new;
my $ref = $xs->XMLin(@ARGV);

#print Dumper($ref); use Data::Dumper;


my $ref2array = $ref->{'RESTRICTION_MAP'}->{'FRAGMENTS'}->{'F'};

print $ref2array, "\n";



foreach my $ref_2_frag_hash (@{$ref2array}){

    #print Dumper $ref_2_frag_hash;
    my $I = $ref_2_frag_hash->{'I'} +1;
    my $S = $ref_2_frag_hash->{'S'};

    #my $I = ${$ref_2_frag_hash}{'I'}+1;
    #my $S = ${$ref_2_frag_hash}{'S'};

    print "$I\t$S\n";
}

Reply via email to