Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I have a feeling that the reason it is not covered in PBP or elsewhere is it's taken for granted that they should be up at the top.

As for putting it inside of a sub to indicate it is only used by that sub -- that could be confusing to less experienced Perl programmers and might cause it to get missed if someone is eyeballing the script for dependancies. It would be better to put it at the top and add a comment explaining where it is used.


In reply to Re: Code style advice: where to put "use" statements? by Argel
in thread Code style advice: where to put "use" statements? by eyepopslikeamosquito

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, 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?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    [choroba]: Robocoptic!
    [erix]: I like Coptics :)
    [LanX]: Copts
    [erix]: sorry - just pulling your leg
    [robby_dobby]: erix: It's a little late for that :-)
    [robby_dobby]: I was falling asleep at my chair and threw out that one bit about participating in a YAPC. Things went from there :-)
    [erix]: never too late to pull legs
    [LanX]: Official YAPC Africa 2013 Announcement
    erix always game to pull legs from sleeping cells
    [erix]: hm nice might do a spot of diving - Red Sea is said to be beautiful

    How do I use this? | Other CB clients
    Other Users?
    Others perusing the Monastery: (14)
    As of 2017-04-24 16:15 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      I'm a fool:











      Results (442 votes). Check out past polls.