Can anyone see why this would return 1?
# we can test if the template is working ok here..
$show = "This is where the content would go...";
open(TEMPLATE, "shoptemplate.htm") || &error("Unable to open template file! Reason: $!");
while (<TEMPLATE>) {
$_ = s/CONTENT/$show/g;
print $_;
} # end the while
I know for a fact that shoptemplate.htm DOES contain some HTML, but it just doesn't want to show it
Cheers for any ideas....I just can't see why its not working :-|
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!
Code:
sub test { # we can test if the template is working ok here..
$show = "This is where the content would go...";
open(TEMPLATE, "shoptemplate.htm") || &error("Unable to open template file! Reason: $!");
while (<TEMPLATE>) {
$_ = s/CONTENT/$show/g;
print $_;
} # end the while
I know for a fact that shoptemplate.htm DOES contain some HTML, but it just doesn't want to show it
Cheers for any ideas....I just can't see why its not working :-|
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!