####

Hi,

I'm getting a weird problem with XML::Simple;

[Tue Feb 17 03:40:51 2009] import_attachments.cgi: Couldn't open encma p iso-8859 -15.enc: [Tue Feb 17 03:40:51 2009] import_attachments.cgi: No such file or directory [Tue Feb 17 03:40:51 2009] import_attachments.cgi: at /usr/lib/perl5/ vendor_per l/5.8.4/x86_64-linux/XML/Parser.pm line 187

I've tried 2 ways of approaching:

my $data; open(READIT,"<$file"); while () { $data .= $_; } close(READIT); my $ref = XMLin($data); ##
## [Tue Feb 17 03:40:51 2009] import_attachments.cgi: Couldn't open encma p iso-8859 -15.enc: [Tue Feb 17 03:40:51 2009] import_attachments.cgi: No such file or directory [Tue Feb 17 03:40:51 2009] import_attachments.cgi: at /usr/lib/perl5/ vendor_per l/5.8.4/x86_64-linux/XML/Parser.pm line 187 #### my $data; open(READIT,"<$file"); while () { $data .= $_; } close(READIT); my $ref = XMLin($data);