Is there any other method to achieve what I want?
Yes, but the use option is likely the simplest and clearest. Another option is to refer to the variables with their fully-qualified forms.
In reply to Re: Using variables declared in a library from other perl scripts
by chromatic
in thread Using variables declared in a library from other perl scripts
by linuxfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |