pdahal has asked for the wisdom of the Perl Monks concerning the following question:
my $src = dir("C:/Perl/pubmed/Prasuna/DM/Database/Drugbank/Split"); #Check files in folder my @txt_files = $src->children; for my $txt_file ( @txt_files ) { my $in = $txt_file->openr; my $parser = new XML::Simple; my $tree = $parser->XMLin($in); $alldrug = $tree->{drug}; #print pp($alldrug); @allkeys = keys % $alldrug;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Not a HASH reference
by kennethk (Abbot) on Mar 22, 2017 at 16:43 UTC | |
Re: Not a HASH reference
by haukex (Archbishop) on Mar 22, 2017 at 16:38 UTC | |
Re: Not a HASH reference
by Anonymous Monk on Mar 23, 2017 at 00:07 UTC | |
Re: Not a HASH reference
by Anonymous Monk on Mar 22, 2017 at 16:09 UTC | |
by haukex (Archbishop) on Mar 22, 2017 at 16:53 UTC | |
by pdahal (Acolyte) on Mar 22, 2017 at 16:19 UTC |