Re: [htmltmpl] print_to error
Brought to you by:
samtregar
From: Timm M. <tm...@ag...> - 2004-05-06 19:00:59
|
At 11:49 AM 5/6/04 -0700, Robert Murray wrote: <snip> >Now the thing is, my code WORKS FINE. It creates the page, I can email it, >click on the link in the email and get to it, etc. It's just bugs me that >when I run the program, I get: > > Use of uninitialized value in print at make_renewals.pl line 263, <> >line 1. > >Line 263 in my script is: > > print $spage->output(print_to => *WEBFILE); <snip> From the HTML::Template documentation: The return value is undefined when using the "print_to" option. If you want to print to both the the *WEBFILE file handle and to the user, then you need two output() operations: $spage->output( print_to => * WEBFILE ); print $spage->output(); Or, if you only want to print the template to the *WEBFILE file handle, then you do without the second line. |