Thanks you for your answers!
On 3/6/06, Sam Tregar <sa...@tr...> wrote:
>
> On Sun, 5 Mar 2006, Matias Alejo Garcia wrote:
> > Is there any way to, once the $template is filled, to dump the variable=
s
> to
> > a file?
> Sure. The full parameter set is available via param():
> my %data =3D map { ($_, $template->param($_) } $template->param();
>
You can dump that hash to a file with Storable or Data::Dumper, just
> like any other Perl file.
Great! Thanks! That was what I was looking for!
Alterantely, you can use Storable on the HTML::Template object itself.
> This is guaranteed to work since this is how HTML::Template implements
> file_cache mode.
with this solution the template itself will be stored (I mean, not only the
parameters), ok?
Thanks!
mat=EDas
--
Mat=EDas Alejo Garc=EDa | http://www.nits.com.ar
|