Skip to content

Commit 0bbf113

Browse files
committed
add 99 bottles of beer, 'official' lyrics
1 parent 35a8ba2 commit 0bbf113

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

other/bottles.pl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
use v6;
2+
3+
my @bottles = ((99...2) X~ ' bottles'),
4+
'1 bottle',
5+
'no more bottles',
6+
'99 bottles';
7+
8+
my @actions = 'Take one down and pass it around' xx 99,
9+
'Go to the store and buy some more';
10+
11+
for @bottles Z @actions Z @bottles[1..*] {
12+
say "$^a of beer on the wall, $^a of beer.
13+
$^b, $^c of beer on the wall.\n".ucfirst;
14+
}

0 commit comments

Comments
 (0)