These are just examples that I. use. There are more example here,

In your $HOME/.cpan/prefs you can hold .yml files that describe how cpan should act on the distributions describes in the YAML file, which includes answering questions asked by Makefile.PL or Build.PL. You can make sections specific for os, so these preferences can be shipped portable across OS's. These files can also refer to patches that you want to apply to the modules (for various reasons). These patches are usually stored in $HOME/.cpan/patches.

$ cat ~/.cpan/patches/XML-Twig.patch --- tools/xml_pp/xml_pp 2010-10-29 13:30:38.000000000 +0200 +++ tools/xml_pp/xml_pp 2010-10-29 13:30:49.000000000 +0200 @@ -10,7 +10,7 @@ my @styles= XML::Twig->_pretty_print_sty my $styles= join '|', @styles; # for usage my %styles= map { $_ => 1} @styles; # to check option -my $DEFAULT_STYLE= 'indented'; +my $DEFAULT_STYLE= 'indented_close_tag'; my $USAGE= "usage: $0 [-v] [-i<extension>] [-s ($styles)] [-p <tag(s) +>] [-e <encoding>] [-l] [-f <file>] [<files>]"; $ cat ~/.cpan/prefs/MIROD.XML-Twig.yml --- match: distribution: "^MIROD/XML-Twig-" pl: expect: - "Do you want to install 'xml_pp'" - "y\n" - "Do you want to install 'xml_grep'" - "y\n" - "Do you want to install 'xml_split'" - "y\n" - "Do you want to install 'xml_merge'" - "y\n" - "Do you want to install 'xml_spellcheck'" - "y\n" depends: requires: Test::Pod::Coverage: 0 patches: - "../../patches/XML-Twig.patch" $ cat ~/.cpan/prefs/NANIS.Crypt-SSLeay.yml --- match: distribution: "^(DLAND|NANIS)/Crypt-SSLeay-" perlconfig: osname: "linux" pl: eexpect: mode: anyorder talk: - "Which OpenSSL build path" - "\n" - "Which SSL install path" - "\n" - "Do you want to run the live tests" - "n\n" --- match: distribution: "^(DLAND|NANIS)/Crypt-SSLeay-" perlconfig: osname: "hpux" pl: eexpect: mode: anyorder talk: - "Which OpenSSL build path" - "\n" - "Which SSL install path" - "/usr/local/ssl\n" - "Do you want to run the live tests" - "n\n" $

Enjoy, Have FUN! H.Merijn
/div

In reply to Re^3: chef cpan cookbook by Tux
in thread chef cpan cookbook by melezhik

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.