Gossamer Forum
Home : Products : Gossamer Links : Discussions :

include Pl file

Quote Reply
include Pl file
I have Pl file that I need to include to every page, is there a global that can do include Pl file
Quote Reply
Re: [nir] include Pl file In reply to
Hi,

By "Pl", so you mean a Perl script? i.e something.pl ?

If so, give this a go:

run_perl_script
Code:
sub {
return system("perl $_[0]");
}

..then call in your template with:

<%run_perl_script('/full/path/to/folder/script.pl')%>

If that doesn't work, then you may need to try:

Code:
sub {
return `perl $_[0]`;
}

Should work =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] include Pl file In reply to
Thanks Andy