my ( $qty, $type, $face ) = shift =~ m/(^\d+)d(\d+)(.*s$)?/i or croak +"Invalid parameters to Dice::Dice->grab: $!"; $face &&= 1; my @dice = map Die->get($type,$face), 1..$qty; return bless { dice => \@dice }, $class;
In reply to Re: BWTDI: Better Way To Do It?
by I0
in thread BWTDI: Better Way To Do It?
by coreolyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |