Could someone please help me define and imported a subroutine. I will try to make this simple.
Script-A contains all of the processes for script-B. Script-A uses script-B as a 'use base'.
Script-A (containing the processes) has subroutine-1 which is used by subroutine-2
How do I import/define script-A subroutine-2 to script-B.
On Script-A subroutine-2
This
Expand|Select|Wrap|Line Numbers
- sub hellos1{
- my $self = shift;
- &say_hello_to('Dan');
- $hello1 = $hellos{'Dan'}
- print $hello1;
- }
Expand|Select|Wrap|Line Numbers
- sub hellos1{
- my $self = shift;
- &say_hello_to('Dan');
- $hello1 = $hellos{'Dan'}
- print $hello1;
- }
If you need to see more, I am willing show you both scripts--but they are l-o-n-g.