I've got a cgi which reads a file, and for each line, produces a html page. There are modules which handle various aspects, and I'm trying to pass data to each module so that it can work on on the data from the file that is read in, one piece at a time...
would this pass to a module the piece of data?
$myvariable = moduleFunction->routineName($value)
where $value is the value from the first line that is read in at the start of the cgi...there is a foreach which handles that well.
how do I get ($value) into the module moduleFunction as in the example? thanks.
in the module code:
($value) = @_;
when you need to remember that ($new, $value) = @_; because first the script passes implicitly the new module object, and then the variable I was trying to pass to the module.
:) perhaps eventually I'll be able to code something.
I use a slightly different technique and syntax (here [webmasterworld.com]) - it might be worth trying it this way and seeing what happens.