I have Pl file that I need to include to every page, is there a global that can do include Pl file
Aug 20, 2008, 1:26 AM
Veteran / Moderator (18441 posts)
Aug 20, 2008, 1:26 AM
Post #2 of 3
Views: 2536
Hi,
By "Pl", so you mean a Perl script? i.e something.pl ?
If so, give this a go:
run_perl_script
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:
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!
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!