logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

seg fault when using template=>TT2: msg#00008

Subject: seg fault when using template=>TT2
This is under WinXP running cygwin nt 5.1, perl 5.8.6
and FB 3.0202.
The following code results in a segmentation fault:

use warnings;
use strict;
use CGI::FormBuilder;


  my @fields = qw(ass bass);
  my $form = CGI::FormBuilder->new(
                  fields   => \@fields,
                  template => {
                      type => 'TT2',
                      template => 'form.tmpl',
                      variable => 'form',
                  }
             );


  print $form->render;

And the template:
      <html>
           <head>
             <title>[% form.title %]</title>
           </head>
           <body>
             [% form.start %]
             <table>
               [% FOREACH field = form.fields %]
               <tr valign="top">
                 <td>
                   [% field.label %]                
                 </td>
                 <td>
                </tr>
                [% END %]
             </table>
          </body>
        </html>


Any one else had this problem?
 


                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 



<Prev in Thread] Current Thread [Next in Thread>