rooneyl has asked for the wisdom of the Perl Monks concerning the following question:
Perl mod code is;<%init> use strict; # path to modules use lib "usr/local/www/apache/htdocs/TEST"; # modules to use use check; </%init> <html> <body> <h1>hello there</h1> % my $test1 = check::one(); % if ($test1 eq 'yes') { <h3>test 1 ok</h3> % } % my $test2 = check::two(); % if ($test2 eq 'two') { <h3>test 2 ok</h3> % } % my $test3 = check::three(); % if ($test3 eq 'three') { <h3>test 3 ok</h3> % } % my $test4 = check::four(); % if ($test4 eq 'four') { <h3>test 4 ok</h3> % } % my $test5 = check::five(); % if ($test5 eq 'five') { <h3>test 5 ok</h3> % } % my $test6 = check::six(); % if ($test6 eq 'six' ) { <h3>test 6 ok</h3> % } <h4>Version is: <% $check::VERSION %>.</h4> </body> </html>
Error message from browser is;package check; use strict; require Exporter; our @ISA = ('Exporter'); our @EXPORT = ( 'one','two', 'three', 'four', 'five', 'six' ); our $VERSION=1.10; sub one { return 'yes'; } sub two { return 'two'; } sub three { return 'three'; } sub four { return 'four'; } sub five { return 'five'; } sub six { return 'six'; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mason problems
by perrin (Chancellor) on Jul 07, 2008 at 15:46 UTC | |
|
Re: Mason problems
by thezip (Vicar) on Jul 07, 2008 at 23:05 UTC | |
|
Re: Mason problems
by Anonymous Monk on Jul 07, 2008 at 14:34 UTC | |
by rooneyl (Sexton) on Jul 07, 2008 at 14:39 UTC | |
by Anonymous Monk on Jul 07, 2008 at 14:45 UTC | |
by rooneyl (Sexton) on Jul 07, 2008 at 16:00 UTC | |
by jethro (Monsignor) on Jul 07, 2008 at 19:35 UTC |