- or download this
#!/usr/bin/perl
use Carp qw(croak);
...
sub git { local $Carp::CarpLevel = 2; imp @_; }
git "hello";
- or download this
perl -w ./git.pl
hello: oops at ./git.pl line 8
- or download this
@CHECKS =
(
...
arg2 => 'mumble', # an optional scalar argument, with the defaul
+t
arg3 => \&check_arg3, # a checked argument.
);
- or download this
sub new { ClassUtils::construct {}, \@CHECKS, @_ }
- or download this
sub new { ClassUtils::construct [], \@CHECKS, @_ }
- or download this
$OBJ = $CLASS->new(arg1 => 1,
arg2 => 'git',
arg3 => $X);
- or download this
sub new { ClassUtils::construct SUPER::new(@_), \%CHECKS, @_ }