Update: This was excessively rude and brutal on my part. Although probably factually accurate, I should have found a more polite way to say this than the method I chose. I'm sure the OP is a good guy whose code does what it's intended to do, whatever issues it might have from a purist's point of view.

His full statement was:

Using return is not an option, as I have a whole lot of variables that has to be available in about 8 different scripts.

He might just as well say:

I don't want to return variables because I want to write crappy code - I just want to put use strict at the top of the files so it doesn't look like crap, or because it looks cool, or because "everyone says I should".

He is building a demonic cluster-f***, which will torment him and all who follow.

And I'm not trying to be mean, but this is not the way to do a project. There is a reason you break things into pieces, but if you're going to use global variables everywhere, <sarcasm>better to have it all in 1 file 10000 lines long, where at least you find all the references to your globals.</sarcasm>.

--Bob Niederman, http://bob-n.com

In reply to Re: Re: Re: 'use strict;' between libraries by bobn
in thread 'use strict;' between libraries by Massyn

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.