Hmm, your coworker is exhibiting false laziness. While I normally agree with building an array (not a list) of variable names, I usually use it in a hash slice.

As far as I understand it, you need to declare variables first, then export them, under strict:

our ($MC_CONFIG_DBI_DRIVER, $MC_CONFIG_DB_NAME, $MC_CONFIG_DB_USER, $MC_CONFIG_DB_PWD, $MC_CONFIG_FILE, $MC_CONFIG_FEED_LOGS, $MC_CONFIG_ARCHIVE_LOGS ); our @ISA = qw( Exporter ); our @export = ($MC_CONFIG_DBI_DRIVER, $MC_CONFIG_DB_NAME, $MC_CONFIG_DB_USER, $MC_CONFIG_DB_PWD, $MC_CONFIG_FILE, $MC_CONFIG_FEED_LOGS, $MC_CONFIG_ARCHIVE_LOGS );
Using symbolic references to avoid a simple cut-and-paste (especially as it's actually *appropriate* in this case) is a punishable offense.

One more thing, your coworker is a little confused on the difference between a list and an array:

our vars = ($one, $two, $three); # a list our vars @array; # an array and an error

In reply to Re: How to set a set of our and @EXPORT variables concisely? by chromatic
in thread How to set a set of our and @EXPORT variables concisely? by princepawn

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.