Thread Argumente/Parameter wo prüfen ? (19 answers)
Opened by der_thomas at 2014-09-15 18:44

GwenDragon
 2014-09-15 19:19
#177287 #177287
User since
2005-01-17
14761 Artikel
Admin1
[Homepage]
user image
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
sub machwas {
  my $self = shift;
  my $parm = shift;
  die 'Parameter of ' 
      . __PACKAGE__ 
      . '->machwas() must be between 0..9' 
      if $parm<0 or $parm >9;
  
  #d machdies und das  
}

View full thread Argumente/Parameter wo prüfen ?