Calling of subs

2004-05-25 Thread Werner Otto
hi there, how do i call a subroutine from one cgi to another? Regards Otto -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Requireing a specific sub

2004-05-25 Thread Werner Otto
Hi there, Is there any way that I can call a specific sub from a cgi script. i.e. script1.cgi sub print1 { print hello1; } sub print2 { print hello2; } script2.cgi my messy code: require(/home/user/public_html/script1.cgi.script2()); obviously this does not compile. But the results needed when

Re: Requireing a specific sub

2004-05-25 Thread Jan Eden
Hi Otto, Werner Otto wrote on 25.05.2004: Hi there, Is there any way that I can call a specific sub from a cgi script. i.e. script1.cgi sub print1 { print hello1; } sub print2 { print hello2; } script2.cgi my messy code: require(/home/user/public_html/script1.cgi.script2());

Re: Requireing a specific sub

2004-05-25 Thread Jan Eden
Werner Otto wrote on 25.05.2004: Im lost, could you give me an example, please... Please cc the list... On Tue, 25 May 2004 13:13:29 +0200, Jan Eden [EMAIL PROTECTED] wrote: Hi Otto, Werner Otto wrote on 25.05.2004: Hi there, Is there any way that I can call a specific sub from a cgi

Re: Requireing a specific sub

2004-05-25 Thread Werner Otto
Hi there, I have created the module and called it SimpleModule.pm. Here is the code: #!/usr/bin/perl package TestModule; use DBI; use Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(connect_db); our $VERSION = 1.0; use strict; sub connect_db { my $db=testdb; my $host=server; my

Error in Make process of Text::Aspell

2004-05-25 Thread Shai
Hi, I hope this is the right mailing list for this question. I'm trying to install Text::Aspell and I'm having a problem in the make process: # make log.log Aspell.xs:7:20: aspell.h: No such file or directory Aspell.xs:12: parse error before AspellCanHaveError Aspell.xs:12: warning: no