CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Perl 5 problem?

Print topic Send  topic

Author Message
M. Sillano
Posted: 03/18/2002, 10:16 AM

Can anyone advise.

Building "Forum" sample w "Perl 5.0 & Templates", i get:

#===============================
# Filename: index.cgi
# Generated with CodeCharge 2.0.0
# PerlTemplates build 09/06/2001
#===============================

11. # index CustomIncludes begin
12. use Common;
13. use strict "vars";

15. use header;
....... more....


#===============================
# Filename: Common.pm
# Generated with CodeCharge 2.0.0
# PerlTemplates build 09/06/2001
#===============================

9. use DBI;
10. use TextTemplate;
11. use strict "vars";
12. BEGIN {
13. use Exporter();
14. use vars qw( @ISA @EXPORT @EXPORT_OK );
15. @ISA = qw( Exporter );
...... more....
45. }
...... more....

Testing in PerlBuilder 1.0e (+ "use diagnostics;" in index.cgi) i get:

====================
Uncaught exception from user code:
Uncaught exception from user code:
Uncaught exception from user code:
Uncaught exception from user code:
Undefined subroutine &Common::sspb_step1 called at Common.pm line 15.
Common::BEGIN() called at Common.pm line 45
eval {...} called at Common.pm line 45
require Common.pm called at script line 12
main::BEGIN() called at Common.pm line 45
eval {...} called at Common.pm line 45
BEGIN failed--compilation aborted at Common.pm line 45.
require Common.pm called at script line 12
main::BEGIN() called at Common.pm line 45
eval {...} called at Common.pm line 45
Compilation failed in require at script line 12.
main::BEGIN() called at Common.pm line 12
eval {...} called at Common.pm line 12
BEGIN failed--compilation aborted at script line 12.
====================

Same using:
A) IndigoPerl + Apache
B) ActivePerl 5.6.1.631 + DBI + Xitami


Any help will be greatly appreciated!
Thanks




---
M.S. courtesy: this mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/02

Alexey Alexapolsky
Posted: 03/19/2002, 4:40 AM

Make sure DBI is really installed on your system.
Make sure that DBD driver for your kind of DB is installed too.
Try DBI:ODBC:dsn connection string instead of DBI:odbc:dsn,
case matters.

--
Alex
CodeCharge Developer


"M. Sillano" <sillano@mclink.it> wrote in message
news:a75ath$a22$1@news.codecharge.com...
> Can anyone advise.
>
> Building "Forum" sample w "Perl 5.0 & Templates", i get:
>
> #===============================
> # Filename: index.cgi
> # Generated with CodeCharge 2.0.0
> # PerlTemplates build 09/06/2001
> #===============================
>
> 11. # index CustomIncludes begin
> 12. use Common;
> 13. use strict "vars";
>
> 15. use header;
> ...... more....
>
>
> #===============================
> # Filename: Common.pm
> # Generated with CodeCharge 2.0.0
> # PerlTemplates build 09/06/2001
> #===============================
>
> 9. use DBI;
> 10. use TextTemplate;
> 11. use strict "vars";
> 12. BEGIN {
> 13. use Exporter();
> 14. use vars qw( @ISA @EXPORT @EXPORT_OK );
> 15. @ISA = qw( Exporter );
> ..... more....
> 45. }
> ..... more....
>
> Testing in PerlBuilder 1.0e (+ "use diagnostics;" in index.cgi) i get:
>
> ====================
> Uncaught exception from user code:
> Uncaught exception from user code:
> Uncaught exception from user code:
> Uncaught exception from user code:
> Undefined subroutine &Common::sspb_step1 called at Common.pm line 15.
> Common::BEGIN() called at Common.pm line 45
> eval {...} called at Common.pm line 45
> require Common.pm called at script line 12
> main::BEGIN() called at Common.pm line 45
> eval {...} called at Common.pm line 45
> BEGIN failed--compilation aborted at Common.pm line 45.
> require Common.pm called at script line 12
> main::BEGIN() called at Common.pm line 45
> eval {...} called at Common.pm line 45
> Compilation failed in require at script line 12.
> main::BEGIN() called at Common.pm line 12
> eval {...} called at Common.pm line 12
> BEGIN failed--compilation aborted at script line 12.
> ====================
>
> Same using:
> A) IndigoPerl + Apache
> B) ActivePerl 5.6.1.631 + DBI + Xitami
>
>
> Any help will be greatly appreciated!
> Thanks
>
>
>
>
> ---
> M.S. courtesy: this mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/02
>
>

M. Sillano
Posted: 03/19/2002, 9:28 AM

I re-installed DBI and DBI.
It not work well in PerlBuilder 1.0e (some Warn and error) but it is OK on
server!.
TY for the help (and encouragement).

m.s.

"Alexey Alexapolsky" <alexa@codecharge.com> ha scritto nel messaggio
news:a77bj0$uo$2@news.codecharge.com...
> Make sure DBI is really installed on your system.
> Make sure that DBD driver for your kind of DB is installed too.
> Try DBI:ODBC:dsn connection string instead of DBI:odbc:dsn,
> case matters.
>
> --
> Alex
> CodeCharge Developer



---
M.S. courtesy: this mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/02


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.