in reply to Re: php style includes
in thread php style includes

HTML::Template IS NOT AVAILABLE.

Replies are listed 'Best First'.
Re: Re: Re: php style includes
by bastard (Hermit) on Jul 03, 2001 at 03:32 UTC
    if you have the ability to create a .pl file and directories on the server then you can use really any module.

    I never bother my hosting provider with module installs, instead I have a perl-lib dir in my home directory with around 5 megs of modules. You just need to add the path to your perl files. I use something like this:

    use lib ("/home/myusername/perl-lib");
    @INC stuff
    Use Lib() and require
    perlman:lib:lib

    If you're absolutely intent on not using any modules, try implementing you own handler:

    for (@page) { s/include\("([^"]+)"\)//;print; if(open F $1){while(<F>){print}} }
    this one should work with php style tags (what you showed). it's incredibly insecure and would miss alot, and may not even work, but it demonstrates the idea