Bolstering my nerd and cigar fiend cred, one lame program at a time.
JudoChinX
Posts: 775 ✭
For some reason, I decided to write a program to smoke cigars for you! In all actuality, I was actually goofing with subroutines for those who care, but for those who don't, maybe you'll still appreciate it:
#!/usr/bin/perl print "Go ahead and list some cigars you have on hand and ready to smoke. Once done, hit ctrl+d on the keyboard. "; chomp(@humidor = ); for $cigar (@humidor) { &smoke($cigar); } sub smoke { print " MMMmmm... this @_ sure looks tasty! "; sleep 1; print "*snips the head; not too much, but not too little; that's a perfect draw!* "; sleep 1; print "*gently toasts the foot* "; sleep 1; print "*blows on the foot to ensure that it's lit evenly* "; sleep 1; print "*enjoys* "; }
Example input and output:
Go ahead and list some cigars you have on hand and ready to smoke. Once done, hit ctrl+d on the keyboard. Cohiba Padilla 5 Vegas Nub MMMmmm... this Cohiba sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys* MMMmmm... this Padilla sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys* MMMmmm... this 5 Vegas sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys* MMMmmm... this Nub sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys*
#!/usr/bin/perl print "Go ahead and list some cigars you have on hand and ready to smoke. Once done, hit ctrl+d on the keyboard. "; chomp(@humidor = ); for $cigar (@humidor) { &smoke($cigar); } sub smoke { print " MMMmmm... this @_ sure looks tasty! "; sleep 1; print "*snips the head; not too much, but not too little; that's a perfect draw!* "; sleep 1; print "*gently toasts the foot* "; sleep 1; print "*blows on the foot to ensure that it's lit evenly* "; sleep 1; print "*enjoys* "; }
Example input and output:
Go ahead and list some cigars you have on hand and ready to smoke. Once done, hit ctrl+d on the keyboard. Cohiba Padilla 5 Vegas Nub MMMmmm... this Cohiba sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys* MMMmmm... this Padilla sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys* MMMmmm... this 5 Vegas sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys* MMMmmm... this Nub sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys*
0
Comments
I have to admit though, that's pretty impressive. I would never have thought of doing something like that!
JDE