in reply to Re^2: 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?

Have you looked at Getopt::Long and @ARGV?

What problems do you have applying the ideas discussed there to your program?

Maybe you also want to look at perlsub to find how to pass parameters to subroutines?

  • Comment on Re^3: How can we read input argument file to a script from its main library?
  • Download Code

Replies are listed 'Best First'.
Re^4: How can we read input argument file to a script from its main library?
by Anonymous Monk on Mar 21, 2017 at 12:25 UTC
    This is not the problem. In simple terms, can we use ARGV[0] of the local script directly in library?

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

      Pass the parameter in your call to the library.

      See perlsyn.