I'm not at all sure there is an 'derr obvious' answer to your problem - right on the contrary.

I think you'll have to go another way; consider for example changing your programs to explicitely use
use SHARED_INTEGERS; my $calculation = $SHARED_INTEGERS::alfa * $SHARED_INTEGERS::beta;
where you'd have an module named SHARED_INTEGERS.pm that would export _nothing_ but might look like
package SHARED_INTEGERS.pm $alfa = 123; $beta = 456;
I know it's rather in the opposite direction that you are looking for - still, maybe it's worth thinking once more about the pros and cons of the different approaches.
Maybe you could also consider the constant pragma.

In reply to Re: sharing symbols by Krambambuli
in thread sharing symbols by mungohill

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.