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

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
That would be perlmod. It's about halfway down the page, and states,
The begincheck program makes it all clear, eventually:
#!/usr/bin/perl # begincheck print " 8. Ordinary code runs at runtime.\n"; END { print "14. So this is the end of the tale.\n" } INIT { print " 5. INIT blocks run FIFO just before runtime.\n" } CHECK { print " 4. So this is the fourth line.\n" } print " 9. It runs in order, of course.\n"; BEGIN { print " 1. BEGIN blocks run FIFO during compilation.\n" } END { print "13. Read perlmod for the rest of the story.\n" } CHECK { print " 3. CHECK blocks run LIFO at compilation?s end.\n" } INIT { print " 6. Run this again, using Perl?s -c switch.\n" } print "10. This is anti-obfuscated code.\n"; END { print "12. END blocks run LIFO at quitting time.\n" } BEGIN { print " 2. So this line comes out second.\n" } INIT { print " 7. You?ll see the difference right away.\n" } print "11. It merely _looks_ like it should be confusing.\n" +;

In reply to Re^2: perl 5.16.3 + Tk 804.031 core dumps on syntax check when a window is made in BEGIN block by ohcamacj
in thread perl 5.16.3 + Tk 804.031 core dumps on syntax check when a window is made in BEGIN block by Anonymous Monk

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 chilling in the Monastery: (2)
    As of 2018-05-20 16:41 GMT
    Find Nodes?
      Voting Booth?