|
#!/usr/bin/perl system('clear'); my @msapp=('you moved your mouse and must restart before changes can take effect','not enough memory to close the window','fatal exeption','ie has caused an error','active x is trying to close this window','please upgrade your ram','does not compute!','keyboard error','do you like bl ue?','out of hard drive space','windows media was unable to contact microsoft to report your current music selection','please re-install windows'); my $toomuch=10; my $anger=0; my $os="windows"; while($os eq "windows"){ foreach $error (@msapp){ print "woops! $error ha ha ha!\n"; $anger++; } if($anger>$toomuch){ $os="linux"; }} print "\n-------------------------------------\n"; print "Your OS selection is: $os\n";