- or download this
use strict;
use warnings;
...
my @cards = split / /, "5$_[0]";
# Do whatever with @cards;
}
- or download this
@_ = (2..4,6..9,'A');
comb('', 4, @_,@_,@_,@_);
- or download this
comb('', 4, 2..4,6..9,'A');
- or download this
use strict;
use warnings;
...
}
sub sum { my $n; $n += $_ for @_; return $n; }