[ABE.pm] Text::Template Q
Faber J. Fedor
faber at linuxnj.com
Mon Jul 31 09:08:41 PDT 2006
On 26/07/06 14:39 -0400, Faber J. Fedor wrote:
> On 26/07/06 14:04 -0400, Ricardo SIGNES wrote:
> > * "Faber J. Fedor" <faber at linuxnj.com> [2006-07-26T13:26:47]
> > > I now want to redirect the output to a file, so I thought simply
> > > doing this would work:
> > >
> > > open(OUTFILE, "> $myfile");
> > > my $report_destination = \*OUTFILE;
> > > printHeader();
> >
> > You are using antique file handles.
>
> "Antique"?! I never got the memo!
>
> > The all-caps, all-global filehandles will come back to haunt you some day.
>
> And today was that day; when I switch to the new (?) style, T::T worked
> perfectly.
And today, it doesn't. :-? I'm back to the same problem of the template
being written to file, but the variables are written to STDOUT after the
program exits.
WTF?!
--
Regards,
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701
http://www.linuxnj.com
More information about the ABE-pm
mailing list