I can't see anything obviously wrong with your code, so the problem must be somewhere else in your environment. Can you post a (short) example of a program which uses this package and exhibits the problem you're describing.
A couple of minor code review notes:
package wslib;
The Perl convention is to reserve lower case package names for pragmas (like 'warnings' and 'strict'). You should rename this to something like "WSLib".
open PAGE, "$data_reg"
There's no need for the quotes there. In fact it is sometimes a really bad idea.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
In reply to Re: data leak using package
by davorg
in thread data leak using package
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |