Or (with modular help) skip the multiple heredocs:
my $dice = YAML::Syck::Load( <<'EOT' ); --- - |- --------- | | | # | | | --------- - |- --------- | # | | | | # | --------- - |- --------- | # | | # | | # | --------- - |- --------- | # # | | | | # # | --------- - |- --------- | # # | | # | | # # | --------- - |- --------- | # # | | # # | | # # | --------- EOT print $dice->[int(rand(@{$dice}))], "\n";
(Using Anonymonk's better looking (IMHO) dice from below)
In reply to Re^3: two dice question
by Fletch
in thread two dice question
by convenientstore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |