http://www.perlmonks.org?node_id=860616


in reply to Re^2: Reading/Parsing an XML file using Perl
in thread Reading/Parsing an XML file using Perl

You're missing at least an opening brace. You have

($file->{filestatus}{'well-formed'}{'content'} eq 'true') && ($file->{ +filestatus}{'valid'}{'content'} eq 'true')) }

but you need something like

($file->{filestatus}{'well-formed'}{'content'} eq 'true') && ($file->{ +filestatus}{'valid'}{'content'} eq 'true')) { # do something useful }