Thanks, I do read but I still need to know which approach is good to use.
I am working on Linux.
I was thinking to use System and pipe commond
to call one program(.pl t.txt) at a time and send it's output to next .pl and next....
second apprach i was thinking was,
call diff modules:
exmp
main.pl
require htmltotext qw(get_html);
require tockenized qw(get_tocken);
require calculate qw(get_cal);
$file=@ARGV[0];
open(OUT,'Query.txt' )|| die "$!";
print OUT htmltotext::get_html($file);
my $tockenized_file=tockenized::get_tocken('Query.txt ');
calculate::get_cal($tockenized_file);
and output of calculate need to be displayed on console.
My problem with this approch is when i am trying to call diff functions from diff modules(.pm files) my program don't gives me output but individually runs perfectly well.
this each of the function is having many small subrutine and have used many modules used in it.
exp
get_html used HTML::Parser ..etc
all works with this main program alone but when i am trying to do next step.it don't give me any output.
is the module having it's own global variables ?
thanks ..
Quote:
Originally Posted by GunnarH
Suggested reading:
perldoc perlmod
perldoc perlsub
If that doesn't help you solve the problem, show us some code.