Hi,
I know Perl does not support SSI includes seamlessly, but some modules are available to integrate the feature.
I'm currently including some HTML files simply by converting them imto an array. This is fearly easy and clean without the aid of a module.
But if the included HTML file has some include statements in it, it will obviously won't work as Perl won't parsed it.
This is the problem I'm dealing with right now. So I was wondering if there is a module available that would parse the include statements in the included file ?
I hope it doesn't sound too complicated. But for experienced HTML guys, I guess it's should be easy too understand.
Any guidance would be appreciated.
Include.html
I know Perl does not support SSI includes seamlessly, but some modules are available to integrate the feature.
I'm currently including some HTML files simply by converting them imto an array. This is fearly easy and clean without the aid of a module.
But if the included HTML file has some include statements in it, it will obviously won't work as Perl won't parsed it.
This is the problem I'm dealing with right now. So I was wondering if there is a module available that would parse the include statements in the included file ?
I hope it doesn't sound too complicated. But for experienced HTML guys, I guess it's should be easy too understand.
Any guidance would be appreciated.
Code:
open(IncludeFile, "Include.html");
my @Inc = <IncludeFile>;
close IncludeFile;
print @Inc;
Include.html
Code:
Some html code here
<!--#include virtual="anothreinclude1.html"-->
<!--#include virtual="anothreinclude2.html"-->
<!--#include virtual="anothreinclude3.html"-->