As I continue to write my mods...
I want to write an include mod something like this:
<%virtual /path/to/script/php/or/perl/%> (read my previous post and you'll see why)
My goal is to get the script to print the script being included...
I came across a problem. I'm not sure how to bring in an argument.
<%virtual whatever_variable%>
In globals.txt I have something like this...
'php' => 'sub {
#Execute a perl or php file...
my $php, $path;
$path = whatever_variable;
the rest of the code yada yada dada....
return $php;
}',
My argument in this case will be the path to the php or perl file...
Any suggestions or help is appreciated,
- Jonathan
I want to write an include mod something like this:
<%virtual /path/to/script/php/or/perl/%> (read my previous post and you'll see why)
My goal is to get the script to print the script being included...
I came across a problem. I'm not sure how to bring in an argument.
<%virtual whatever_variable%>
In globals.txt I have something like this...
'php' => 'sub {
#Execute a perl or php file...
my $php, $path;
$path = whatever_variable;
the rest of the code yada yada dada....
return $php;
}',
My argument in this case will be the path to the php or perl file...
Any suggestions or help is appreciated,
- Jonathan