Hi
I am writing a few mods for my dbman script, but I would like to place them in a seperate file. I have defined this file in the cfg file, as a require file.
The mods involve several different sub routines, for different functions. I require to take the input data from
%rec
I know they work as I have tested them built directly into the htmp.pl file, but I am having difficulty calling them from the file that I made up.
I thought I could define the scalar output in the sub routine in html.pl by using
my $modoutput;
and then inserting
&call_my_subroutine;
and placing
$modoutput where I wanted the output
This will not work.
What am I missing?
Oh yes I am reasonably new to perl, reading books, but its great, well worth trying to anybody thinking about it.
Thanks
DavyC
http://www.amijet.com
Life's more fun in a virtual world
I am writing a few mods for my dbman script, but I would like to place them in a seperate file. I have defined this file in the cfg file, as a require file.
The mods involve several different sub routines, for different functions. I require to take the input data from
%rec
I know they work as I have tested them built directly into the htmp.pl file, but I am having difficulty calling them from the file that I made up.
I thought I could define the scalar output in the sub routine in html.pl by using
my $modoutput;
and then inserting
&call_my_subroutine;
and placing
$modoutput where I wanted the output
This will not work.
What am I missing?
Oh yes I am reasonably new to perl, reading books, but its great, well worth trying to anybody thinking about it.
Thanks
DavyC
http://www.amijet.com
Life's more fun in a virtual world