Clownfish::ParamList - parameter list.
my $param_list = Clownfish::ParamList->new( variadic => 1, # default: false );
variadic - Should be true if the function is variadic.
$param_list->add_param( $variable, $value );
Add a parameter to the ParamList.
variable - A Clownfish::Variable.
value - The default value for the parameter, which should be undef if there is no such value and the parameter is required.
Accessors.
Return the number of variables in the ParamList, including "self" for methods.
# Prints "Obj* self, Foo* foo, Bar* bar". print $param_list->to_c;
Return a list of the variable's types and names, joined by commas.
# Prints "self, foo, bar". print $param_list->name_list;
Return the variable's names, joined by commas.
To install Lucy::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lucy::Simple
CPAN shell
perl -MCPAN -e shell install Lucy::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.