- or download this
sub ButtonFactory {
my ($custom_options, $shape, $text) = @_;
...
return %{ merge( \%button_skeleton, $custom_options) };
}
# merge is Hash::Merge
- or download this
my %BUTTON = ButtonFactory(..);
for (1..20) {
$BUTTON{option} = 'value';
buildZincItem(.., .., $BUTTON);
}
- or download this
# $BW = Button Width
# $BH = Button Height
...
}
},
);
- or download this
#!/usr/bin/perl
...
$$custom_options{-items}{text} = $text;
return %{ merge( \%button_skeleton, $custom_options) };
}