Hi Mark and Mathew,
 
Thanks for both your suggestions.
 
I think I would try using the (scalarref => $ref_to_template_text) method.
 
I now have to experiment with figuring out how to use wget within a perl script.
 
 
Regards,
Sanjeewa
 

Date: Wed, 10 Jun 2009 08:56:19 +1000
From: mathew.robertson@netratings.com.au
To: html-template-users@lists.sourceforge.net
Subject: Re: [htmltmpl] FW: Error using html::template


Other than that, I'd suggest you ask your sys-admin to fix their
security policy....
    
What about using wget or curl to read the file, and then use the
feature of H::T's "new" method to load a template from a variable?
(scalarref => $ref_to_template_text).

I agree that disallowing opening files on a system seems obsessive.
  
An "strace wget file:///home/..." shows that wget uses the open() system call.  I'd suspect that wget would also fail for the same reason.

For wget to succeed (in this conext), I suspect that it would need make a request to a http-daemon, which itself serves the file.

cheers,
Mathew Robertson


Let us help with car news, reviews and more Looking for a new car this winter?