I have two modules one module has this
package::config;
use exporter;
use vars qw (@isa @export @export_ok %export_tags $version);
%EXPORT_TAGS = (
sms => [ qw(
$SMS_DISABLE_DL
%ERRMSG
) ],
);
@EXPORT_OK = (
@{ $EXPORT_TAGS{'sms'} },
);
use vars qw(
%ERRMSG
);
$ERRMSG{123} = "some string error1";
$ERRMSG{345} = "some string error2";
somewhere else in my 2nd module I have this
use package::config qw(:sms );
but when I go to mydomain.com/perl-status?package::caller
I see it's making a copy of ERRMSG hash I'm trying to use Class::Singleton but I can't figure out, I'll appreciate any help or hints.....what I want to do is when I call the ERRMSG in some other package I want to see it refrenced from it's original package and not make a copy
20050217 Janitored by Corion: Added code tags around code
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.