No, you should not use @ARGV anywhere outside the main program.
Pass the parameter in your call to the library.
See perlsyn.
In reply to Re^5: How can we read input argument file to a script from its main library?
by Corion
in thread How can we read input argument file to a script from its main library?
by Meena212
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |