Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: i love you. Love poem with output.

by marto (Bishop)
on Mar 23, 2011 at 10:31 UTC ( #894974=note: print w/replies, xml ) Need Help??

in reply to i love you. Love poem with output.

Are you sure this does what you mean? I've added a couple of lines to print $heart and $me:

#!/usr/bin/perl -w #myHeart, A Poem by TheEliteNoob $i = "u"; $u = "i"; $love = "u+i"; my $heart = "$u make my heart flutters..."; # Added print "$heart\n"; if($i ne "Not with $u"){ $heart = "Just Breaks"; } $me = "just thinks of $u"; # Added print "$me\n"; while($me eq $u){ $sad = "when not with $u"; $happy = "with $u my love"; last; #forever } while($me && $u eq $love){ $me = "$happy and not $sad"; last; #forever } $myLove = "$u love $i"; print "\n$myLove\n";


i make my heart flutters... just thinks of i i love u

Replies are listed 'Best First'.
Re^2: i love you. Love poem with output.
by The Elite Noob (Sexton) on Mar 24, 2011 at 02:00 UTC
    Actually it is what i meant, thats how i wrote it.
Re^2: i love you. Love poem with output.
by Anonymous Monk on Aug 20, 2011 at 00:47 UTC

    I think the poem's source is more important than the output.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://894974]
[LanX]: ... and I can get faster to the Dutch PW or French PW ...
LanX ...(by train from Frankfurt)
[LanX]: renting a car could be an option ...
[NodeReaper]: speedboat

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2018-03-19 11:58 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (239 votes). Check out past polls.