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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] include Pl file In reply to
Thanks Andy