-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleanUp.pl
More file actions
35 lines (30 loc) · 1.06 KB
/
cleanUp.pl
File metadata and controls
35 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use strict;
use POSIX;
# Create locations
my @places = (
"pineTree", "largeStone", "blueHouse", "church", "pub",
"boat", "smallStone", "bridge", "ashTree", "beach", "oakTree",
"waterTower", "bellTower", "harbour", "ferryPort", "busStop",
"library", "giftShop", "lab", "cafe", "bikeShop", "bikePath",
"lake", "piratesCove", "parrotShop", "prostheticShop",
"ophthalmologist", "rumBarrel", "sailMakers", "plankMaker",
"swordShop", "lightHouse", "newsAgent"
);
my @people = (
"a grad student", "an aardvark", "my supervisor", "Trinity", "Polly", "Margaret Oakley Dayhoff",
"a herd of wildebeest", "The Dude", "the love of my life"
);
my $person = $people[ rand @people ];
my $place = $places[ rand @places ];
print "Deleting stuff. I once met ".$person." in that ".$place.".
I have these memories from my life. None of them happened. What does that mean?\n";
# Delete each directory
foreach my $place (@places){
if (-e $place){
my $result = system("rm -rf $place");
}
}
my $firstClue = 'Clue01_S.txt';
if (-e $firstClue){
my $result = system("rm $firstClue");
}