Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

A Love Poem

by tom10animal (Monk)
on Mar 27, 2008 at 19:15 UTC ( [id://676832]=poem: print w/replies, xml ) Need Help??

Inspired by my girlfriend who I love more than life itself...

#!/usr/bin/perl use warnings; use strict; my @time; my $prettygirl = 'beautiful'; my $herresponse = 'will be yes'; sub hugs { print "OOO"; } sub kisses { print "XXX"; } while($prettygirl eq 'beautiful') { @time = localtime(time); print "I love you more than anything in the world!"; &hugs; &kisses; if($time[5] == 109 and $time[7] == 104) { until($herresponse eq 'yes') { print "Will You Marry Me?\n"; ########## #Pretty Girl's Response... ########## chomp($herresponse = <STDIN>); } } if($time[5] == 110 and $time[7] == 170) { if($herresponse eq 'yes') { while($time[5] == 110 and $time[7] == 170) { @time = localtime(time); ########## #Wedding Bells ########## print "\aDing \aDong\n"; } } } &hugs; &kisses; print "\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: poem [id://676832]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found