exposing constants

2003-10-06 Thread Eric Wilhelm
If I have a file full of statements like: #define AD_ENT_LINE 1 Is there any way to expose those to the overlying Perl code via Inline without a lot of data duplication? I'm working on a wrapper for the openDWG toolkit, which has several of these entity codes defined in its header files

Re: Passing Hash values as Objects in Inline::Java

2003-10-06 Thread Patrick LeBoutillier
Ludovic, What you are trying to do is very interesting, and it seems you are running into problems because template-toolkit uses the Perl-ism of stuffing everything into a big hash. I think the best way for you to approach this is to keep your hash in Perl-land, and create functions, in Perl,

Passing Hash values as Objects in Inline::Java

2003-10-06 Thread Ludovic Dubost
Hi, I'm trying to use Inline::Java to use the Perl Template Toolkit (http://www.template-toolkit.org/) from Java.. But I'm having little problems with communicating Hashtables to perl. The way things work in the template toolkit is that you pass to templates a perl Hash that contains a lot of