[redland-dev] RDF::Redland::Model trouble with PERL CGI

Hinko Frouws hjafrouws at gmail.com
Wed Nov 29 13:50:39 UTC 2006


For some reason the following line imported in a CGI script is 'causing a
problem:


my $model=3Dnew RDF::Redland::Model($storage, "")


It does work well outside CGI, and the rest of Redland (as far as I can test
it without a model) is not caausing any trouble.

for example in this little snippet:

#!/usr/bin/perl -w

use strict;
use RDF::Redland;
sub dingetje{
my $storage=3Dnew RDF::Redland::Storage("hashes", "finaleset",
"hash-type=3D'bdb',dir=3D'.'");
my $model=3Dnew RDF::Redland::Model($storage, "");
}


use CGI qw(:standard);
my $storage;
my $model;


print header('text/html')
 ,start_html;

print h2('so far so good');



dingetje();
print end_html;

Any solutions??

-- =

Vriendelijke groeten,

Hinko Frouws
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.usefulinc.com/pipermail/redland-dev/attachments/20061129/=
c4e0b238/attachment.htm


More information about the redland-dev mailing list