return $self->{argc};
}
+sub strict {
+ my $self = shift;
+ return 0 unless ref($self);
+ return $self->{strict};
+}
+
sub api_name {
my $self = shift;
return 1 unless ref($self);
my $resp;
try {
- # un-if(0) this block to enable param checking based on signature and argc
- if (0) {
+ if ($coderef->strict) {
if (@args < $coderef->argc) {
die "Not enough params passed to ".
$coderef->api_name." : requires ". $coderef->argc
sub parse_string_signature {
my $string = shift;
return [] unless $string;
- my @chunks = split(/\@/so, $string);
+ my @chunks = split(/\@/sog, $string);
my @params;
my $ret;