Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

I wrote some Perl to say hello,
To a world i did not know.
Prepended line numbers there in tow,
I basically told it where to go.

10 ? 'Hello World!\n';

Something there did not quite load,
No matter how i tried to goad,
Quickly then i shifted mode,
And thought i'd see to add the code.

use cout; print << 'Hello World!\n';

But that just didn't work at all,
Did i forget to make a call?
Imagining i was Larry Wall,
I coded the sequel to carry the ball.

query::statement->execute('SELECT "Hello World!\n"');

What's there to object in that line?
On paper it had worked just fine,
Perl is broken...or is that just mine?
No, add a line, and never whine!

procedure perl is begin(print 'Hello World!\n')

Something there was still not right,
But, waste not time and be contrite.
I must put up and win this fight,
Make a web of code to end my plight.

<?perl <print>'Hello World!\n'</print>; ?>

Just when i thought my code was suited,
I found that i was just deluded,
But where had the offending line intruded?
Oh! Just assemble a line to be included.

use LC0.ascii /Hello, world!/; movl $LC0, (%esp);

Why is it that Perl is so frustrating?
I give perfect code, yet it's not abating,
And people love what i start hating?
I need help, if just for tranlsating.

print *, "Hello World!", e\nd

Then again, thrown to the ground,
But i know that my good code is sound!
Perhaps the web has help to be found,
And answer: why does perl monkey around?

I added a node, asking the question,
I posted my code, and made sure to mention,
How perfect it was, (at least in inflection).
I just hope that Poetry is the correct section.

In reply to Perl(Hello World) by chacham

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others cooling their heels in the Monastery: (3)
    As of 2018-01-20 00:19 GMT
    Find Nodes?
      Voting Booth?
      How did you see in the new year?

      Results (226 votes). Check out past polls.