bazz
02-19-2005, 04:40 PM
Hi,
OK I have been reading about packages.
My package file is called packagename.pl and contains this code:-
package packagename;
BEGIN {}
sub header {'hello';}
return1;
END{}
My perl file has these lines, yet it only shows the line packagename::header() in the outputted html
require '../../packages/packagename.pl';
print "packagename::header()";
I reckon I am calling it wrongly but please tell me what I am doing wrong.
bazz
OK I have been reading about packages.
My package file is called packagename.pl and contains this code:-
package packagename;
BEGIN {}
sub header {'hello';}
return1;
END{}
My perl file has these lines, yet it only shows the line packagename::header() in the outputted html
require '../../packages/packagename.pl';
print "packagename::header()";
I reckon I am calling it wrongly but please tell me what I am doing wrong.
bazz