Eternius: Eine Art und weise die Parameter auszulesen

Beitrag lesen

Hallo,

  
  sub ()  
  {  
    my ($bla, $blub) = @_[2..4];  
  }  

auch gern gesehene Kandidaten sind grep und map

  
  sub foo  
  {  
    my @bla = map (clean($_), @_);  
  }  
  
  sub clean($)  
  {  
    my $val = shift;  
    $val =~ s/3//;  
    $val;  
  }  

gruss

--
no strict;
no warnings;
Terrorific!
Given a cow full of milk, should the milk un-cow itself, or should the cow milk itself?