Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Command line confusing me

by benn (Priest)
on Aug 26, 2003 at 09:53 UTC ( #286639=note: print w/ replies, xml ) Need Help??

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;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://286639]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2016-06-29 20:29 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (387 votes). Check out past polls.