I try to write a package file.
For just make it work I define package file that contain :
package Conferences; # assumes Some/Module.pm
use strict;
use Exporter ();
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
$VERSION = 1.00;
@ISA = qw(Exporter);
@EXPORT = qw();
%EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ],
@EXPORT_OK = qw(&ConvertDate);
sub main'Today {
my $cday = (localtime)[3];
my $cmonth = (localtime)[4] + 1 ;
my $cyear = (localtime)[5] + 1900 ;
return ("$cyear-$cmonth-$cday");
}
When I run the program from the command line it work okay but
when I run the program from Netscape I get:
[error] Undefined subroutine
&Apache::ROOT:: ... ::scientist1_2emperl::Today called at
script.mperl line 28.
What is missing?
Shlomit.
Shlomit.