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 (17298 posts)
Aug 20, 2008, 1:26 AM
Post #2 of 3
Views: 375
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
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
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

