Help for this page

Select Code to Download


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