Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Embedded Perl, or library?

0 views
Skip to first unread message

jbha...@home.net

unread,
Dec 9, 1998, 3:00:00 AM12/9/98
to


I'm looking to make use of Perl in an embedded fashion...as an interpreted
language for a virtual world. Does Perl have the ability to be a library
and then linked into other programs?

Weird question, I know.


j
--
Justin B. Harvey
http://www.auspex.net/jbharvey

Marcin Kasperski

unread,
Dec 9, 1998, 3:00:00 AM12/9/98
to
jbha...@home.net wrote:
>
> I'm looking to make use of Perl in an embedded fashion...as an interpreted
> language for a virtual world. Does Perl have the ability to be a library
> and then linked into other programs?
>

It has. I use it so.
The best known example is mod_perl Apache module.
You have some docs. Try:

perldoc perlembed

--
Marcin Kasperski
Marcin.K...@softax.com.pl

Fluffy

unread,
Dec 9, 1998, 3:00:00 AM12/9/98
to
jbha...@home.net <jbha...@home.net> wrote:
> I'm looking to make use of Perl in an embedded fashion...as an interpreted
> language for a virtual world. Does Perl have the ability to be a library
> and then linked into other programs?

Sure! Both INN and Apache use this feature with quite a bit of
success.

> Weird question, I know.

Nah. See the perlembed pod for how to do it. Just take care not to
get _too_ cute; oddities like running certain XS-based modules inside
a perl script embedded in a C app may cause your app to die horribly
on some platforms, but in general it's pretty smooth.


Marcin Kasperski

unread,
Dec 10, 1998, 3:00:00 AM12/10/98
to
Fluffy wrote:
> Nah. See the perlembed pod for how to do it. Just take care not to
> get _too_ cute; oddities like running certain XS-based modules inside
> a perl script embedded in a C app may cause your app to die horribly
> on some platforms, but in general it's pretty smooth.

Could you elaborate a bit on those problems (platforms)? I'm just
programming such configuration...


--
Marcin Kasperski
Marcin.K...@softax.com.pl

0 new messages