I just started perl a week ago, so this is one of my first pieces of code. All comments are welcome.
#!usr/bin/perl #Written by gilbert for UEC. #http://www.uec.be -should be up soon...- #Mail gilbert_vilvoorde@hotmail.com for bugs, improvements, questions, + insults or loveletters. #I'm just a beginner so this is crappy code. use warnings; use strict; #Before I met you, I was like a $calar. my $lonely = "Gilbert"; #When we got together, we lived in our own @rray of love. my @love = ("Gilbert","lieselotte"); #When we have sex, it is like we become one. my $sex = join "=" , @love; #Now we are like a pair of data, safely surrounded by the hash of love +. my %marriage = ( gilbert => "lieselotte" ); print "$lonely\n"; print "(@love)\n"; print "$sex\n"; for (keys %marriage) { print "$_ loves $marriage{$_} forever.\n"; } while (1) { print "Let our love be as infinite as this loop.\n"; }

In reply to In love with perl by gilbert0

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.