HOW TO MAKE OUTPUT FILE OF ONE SCRIPT, AS AN INPUT FILE FOR THE ANOTHER SCRIPT? : i am currently working on a project where in i am using perl language to create command line application of one online tool.
There are total nine modules(for each module there is separate perl script).

THIS COMMAND LINE APPLICATION SHOULD WORK IN A FOLLOWING WAY-
1.Out of these nine modules user would be able to select any number of modules.(in short pipeline should be built).
2.after running first selected module ,output files are generated.
3.output file of first module should be taken as an input file by the next module selected by the user.

my doubt is how we can make output file of first module as an input file for the next selected module.
It will be a great help if you solve my doubt as i am new to  perl programming.
Thanking you!  