In Berne Convention countries, anything you publish is automatically under your own copyright, unless you've agreed to terms to the contrary. (And publication on the Internet does count as publication.)

For example, when working under a contract, this often assigns the code you write during work hours to your employer. Your country's laws may even make that assumption by default, in the absence of specific copyright clauses in your contract.

PerlMonks, unusually for site of its nature does not have a terms of service document that users need to agree to. Such documents usually include language to the effect that users retain copyright on their contributions, but by posting material, they automatically give the website permission to publish them.

So, unless I've missed something subtle, yes, you own the copyright on code you publish on PerlMonks. (Unless your employer does!)

For a year or so, I've had a note on my home node clarifying the copyright and license for code I publish here.

The usual IANAL disclaimers apply.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

In reply to Re: Copyright of posted material by tobyink
in thread Copyright of posted material by McA

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.