4 ms·
sub native_assignment { die "Too few arguments for subroutine $!" unless @_ == 1; my $var = @_; } There is a bug here. This assigns $var
by onedognight 12y ago
sub native_assignment {
die "Too few arguments for subroutine $!" unless @_ == 1;
my $var = @_;
}
There is a bug here. This assigns $var to the number of arguments so it's not the same the versions below that are being compared to.
sub native_signature ($var) {}
func method_signature ($var) {}