in reply to Using variables declared in a library from other perl scripts

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.

  • Comment on Re: Using variables declared in a library from other perl scripts