Permission denied at C:/Perl/site/lib/XML/Handler/ line 43.

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I get this error when I try following code:

my $handler   = XML::Handler::YAWriter->new(AsFile => "c:\z.xml");
my $generator = XML::Generator::DBI->new(
   Handler => $handler,
   dbh     => $dbh

AsString => "-" work good.


Re: Permission denied at C:/Perl/site/lib/XML/Handler/YAWriter.pmline 43.

Piet L. wrote:

> I get this error when I try following code:

Please do not put important information only in the subject of your
post. I assume 'this error' was 'Permission denied at
C:/Perl/site/lib/XML/Handler/ line 43.'

> my $handler   = XML::Handler::YAWriter->new(AsFile => "c:\z.xml");

Perhaps you should explain how you have ruled out the blindingly obvious
explaination, namely that the process executing this code does not have
permission to write to c:\z.xml ?

Site Timeline