http://www.perlmonks.org?node_id=99080
PyroX's user image
User since: Jul 23, 2001 at 21:09 UTC (23 years ago)
Last here: Nov 08, 2003 at 21:58 UTC (20 years ago)
Experience: 619
Level:Pilgrim (8)
Writeups: 52
Location:USA
User's localtime: Mar 28, 2024 at 19:17 -06
Scratchpad: View
For this user:Search nodes
Watch for posts by this user

#!/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";