in reply to Re^3: How can we read input argument file to a script from its main library?
in thread How can we read input argument file to a script from its main library?

This is not the problem. In simple terms, can we use ARGV[0] of the local script directly in library?
  • Comment on Re^4: How can we read input argument file to a script from its main library?

Replies are listed 'Best First'.
Re^5: How can we read input argument file to a script from its main library?
by Corion (Patriarch) on Mar 21, 2017 at 12:27 UTC

    No, you should not use @ARGV anywhere outside the main program.

    Pass the parameter in your call to the library.

    See perlsyn.