bh_perl has asked for the wisdom of the Perl Monks concerning the following question:
Hi
This is my first script called main.pl
#!/usr/bin/perl require "sub_program_a.pl"; print "CELCOM INPUT DIRECTORY : $INPUTCEL\n"; require "sub_program_b.pl"; print "AFFIN INPUT DIRECTORY : $INPUTAFF\n";
This is my first sub program called sub_program_a.pl
#!/usr/bin/perl our $INPUTCEL = "/home/ftpcelcom/data"; 1;
This is my second sub program called sub_program_b.pl
#!/usr/bin/perl our $INPUTAFF = "/home/ftpaffin/data"; 1;
I plan to:
1. Create another sub program called sub_program_c.pl
2. Pass the variable $INPUTAFF and $INPUTCEL into sub_program_c.pl
3. Changes the variables values as below:
- $INPUTAFF = "/home/ftpaffin/data/archive"
- $INPUTCEL = "/home/ftpcelcom/data/archive"
4. Return the values back to main.pl
Please help me how to do that, I have tried used require but its look failed might be I am not good enough.
Hopefully you are understand about my question and Please help me..
Back to
Seekers of Perl Wisdom