http://www.perlmonks.org?node_id=286639


in reply to Command line confusing me

Once you've installed the modules using Zaxo's advice, there are a couple of ways to interface to your data analysis scripts.

The simplest would be to externally call them from within your program, using backticks or similar - something like this...

my $munged_data = `analysis_program $data`;
Alternatively, you could look into including the scripts in your source. Any modules should be easily importable with the 'use' statement, and it should be a simple task to replace command line parameters with passed-in parameters...something like this...
#Old Code my $data = $ARGV[0]; do_stuff($data); #New Code package Munger; sub munge_data { my $data = shift(); do_stuff($data); } 1;
HTH
Ben.