#songsincode I’m too Sexy
Full code viewable at http://www.exstatica.net/im_too_sexy.txt
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | #!/usr/bin/perl # Checks level of sexyness my $im={'sexyness'=>$ARGV[0], 'Model'=>1,}; my $items={'Shirt'=>1,'Party'=>1,'Car'=>1, 'Hat'=>1, 'Cat'=>1, 'Love'=>1, 'Song'=>1}; my $places={'Milan'=>1, 'New York'=>1, 'Japan'=>1}; while ($im->{'sexyness'}) { if ($im->{'sexyness'} > $item->{'Love'}) { love_leave(); } if ($im->{'sexyness'} > $item->{'Shirt'}) { $im->{'hurts'} = 1; } foreach my $place (keys (%{$places})) { if ($im->{'sexyness'} < $places->{$place}) { #do nothing because i'm too sexy } } if ($im->{'sexyness'} < $item->{'Party'}) { do_disco_dance(); } else { print "No way I'm disco Dancing\n"; } if ($im->{'Model'}) {\ do_turn_on_catwalk(); } if ($im->{'sexyness'} > $item->{'Car'}) { $im->{'sexyness'}++; } if ($im->{'sexyness'} > $item->{'Hat'}) { what_do_you_think_about($item->{'Hat'}); } if ($im->{'Model'}) { do_turn_on_catwalk(); } if ($im->{'sexyness'} == $im->{'sexyness'}){ print "Too sexy\n"; } if ($im->{'Model'}) { do_turn_on_catwalk(); } if ($im->{'Cat'}) { sad_pussy_cat(); } if ($im->{'sexyness'} > $item->{'Love'}) { love_leave(); } if ($im->{'sexyness'} > $item->{'Song'}) { print "I'm too sexy for this song\n"; die(); } } sub love_leave { print "Love is leaving\n"; } sub disco_dance { print "disco dancing\n"; } sub do_turn_on_catwalk { print "Shake my little touche on the catwalk\n"; } sub sad_pussy_cat { print "Poor pussy poor pussy cat\n"; } sub what_do_you_think_about { $im->{'sexyness'} = $im->{'sexyness'} + $_[0]; } |













