[Petal] 'base_dir' needs to be set with perl-5.6.1
Bruno Postle
bruno at mkdoc.com
Sun Oct 12 22:29:16 BST 2003
This line generates an error on a perl 5.6.1 environment, but not
with perl-5.8.0 (redhat-7.2 vs. redhat-9):
my $template = new Petal (file => 'template.html');
A workaround is to use this, though according to the docs, they are
equivalent:
my $template = new Petal (file => 'template.html', base_dir => '.');
This is the error:
Unsuccessful stat on filename containing newline at /usr/lib/perl5/site_perl/5.6.1/Petal.pm line 454.
Unsuccessful stat on filename containing newline at /usr/lib/perl5/site_perl/5.6.1/Petal.pm line 454.
[PETAL ERROR] Cannot find template.html in /home/bruno/src/petal-demo
. (typo? permission problem?) at /usr/lib/perl5/site_perl/5.6.1/Petal.pm line 457
Petal::_file_path('Petal=HASH(0x83d9884)') called at /usr/lib/perl5/site_perl/5.6.1/Petal.pm line 532
Petal::_code_memory_cached('Petal=HASH(0x83d9884)') called at /usr/lib/perl5/site_perl/5.6.1/Petal.pm line 339
eval {...} called at /usr/lib/perl5/site_perl/5.6.1/Petal.pm line 333
Petal::process('Petal=HASH(0x83d9884)', 'HASH(0x80fbeb0)') called at /home/bruno/src/petal-demo/test.pl line 24
. Debug info written in /tmp/petal_debug.30946.1065993735.vyhpeuqkrd. at /usr/lib/perl5/site_perl/5.6.1/Petal.pm line 386.
--
Bruno
More information about the Petal
mailing list