in reply to Re^2: How to pass file paths in a master script which is used to run several perl scripts?
in thread How to pass file paths in a master script which is used to run several perl scripts?

Consider using a config file and read the values within the child scripts, depending on whatever criteria you have to work with. If you have that many path variables it's worth thinking about this rather than managing then all within a series of scripts.

  • Comment on Re^3: How to pass file paths in a master script which is used to run several perl scripts?

Replies are listed 'Best First'.
Re^4: How to pass file paths in a master script which is used to run several perl scripts?
by ankit.tayal560 (Beadle) on Oct 18, 2016 at 10:56 UTC

    Marto, Could you please explain a little bit more about this as I am a beginner to this part of perl scripting. I don't have an idea about how to make config files and all ?? any help is appreciated . Thanks in advance!

      Firstly, we're several posts into this thread and only found out that you have a requirement to deal with up to 20 different paths, with no mention of how you expect the correct paths to be passed to the 50 or so child scripts. What is your criteria for this? Ideally you'd have explained this in your initial post (I've asked you to read this a few times now). There are many ways to use config type files within perl, example.

      "...I don't have an idea about how to make config files..."

      Try Config::Tiny. And please see also Configuration file as well as INI file.

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»