[* use strict; use vars qw($___b); my $data = shift @param; *] #A4# #[+ $data->{'obj_name'}; +]# [* # loop ouputting the get/set attributes... my @attrs = @{$data->{'fields'}}; my $attr; while(@attrs) { $attr = shift(@attrs); #warn "field: ",$attr,"\n"; *] [+ ' '; +] #[+ $attr; +]# ## [* # end the loop outputting the attributes... } *] [+ ' '; +] [* # loop outputting the methods... my @methods = @{$data->{'methods'}}; my($meth,$visibility); while(@methods) { $meth = shift(@methods); $visibility = '_' eq substr($meth,0,1) ? '1' : '0'; *] [+ ' '; +] #[+ $meth; +]# [* # end method loop } *] [+ ' ';+]