Help for this page

Select Code to Download


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